Overriding markerBgColor in toolTip and Marker
FusionCharts Forum
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        



Overriding markerBgColor in toolTip and... Expand / Collapse
Author
Message
Posted 1/18/2008 4:24:16 PM
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Group: Forum Members
Last Login: 11/13/2008 5:00:28 PM
Posts: 19, Visits: 44
See

http://www.denverpostplus.com/FusionMaps/LiveExamples/PW.html

I want to place two markers on each state. I want the two markers in each state to be different colors (red and blue, for example).

The documentation says, "This attribute lets you set a common background color for all the defined markers on the map. You can later over-ride individual marker colors by using SHAPE definitions." I have tried putting "markerBgColor='(colorcode)'
in this line of my code:
marker id='CO-Dem' shapeId='circle' markerBgColor='0000FF' toolText='<b>Cand. Votes % Del.</b><BR><b>Clinton</b> 100 50.0 10 <BR><b>Obama </b>50 25.0 5<BR><b>Edwards</b> 50 25.0 5<BR>'/>

But when I refresh the map, there is no difference in the color. I also want to accomplish the same thing with the background color of the tool tip.

Thanks in advance for your help.

Keith Morse
Denver Post


Keith Morse
denverpost.com
Post #3946
Posted 1/20/2008 11:39:08 PM
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Moderators
Last Login: Today @ 1:19:54 AM
Posts: 870, Visits: 1,386
hi,

Try this :

<map markerBorderColor='000000' markerBgColor='ff0000'  showMarkerToolTip='1'  >
 <data>
 </data>
 <markers>
  <definition>
   <marker id='01' x='386.02' y='264' label='InfosoftGlobal'  />
   <marker id='02' x='533.02' y='171' label='FusionCharts'  />
  </definition>
  <shapes>
         <shape id='s1' type='polygon' sides='4' fillColor='0000ff' radius='20' startAngle='90'/>
         <shape id='s2' type='polygon' sides='4' fillColor='00ff00' radius='20'/>
      </shapes>
  <application>
   <marker id='01' shapeId='s1'  />
   <marker id='02' shapeId='s2'  />
  </application>
 </markers>
</map>

Regards,

Sudipto Choudhury
FusionCharts Team

Post #3979
Posted 1/21/2008 9:33:49 AM
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Group: Forum Members
Last Login: 11/13/2008 5:00:28 PM
Posts: 19, Visits: 44
Thank you for the direction. I now have markers in two colors.

Here is what I did to define the type and color of the marker itself
shapes>
shape id='s1' type='arc' fillColor='0000FF'/>
shape id='s2' type='circle' fillColor='FF0000'/>
/shapes>

application>
marker id='CO-Dem' shapeId='s1' toolText=' ..... (html and text goes here)
marker id='CO-GOP' shapeId='s2' toolText=' ..... (html and text goes here)
/application>
/markers>


Now I would like to accomplish the same with the background color of the tool tip. I know that it must be a similar approach but I could not discern from your directions how to apply that to the tool tip background. In my xml file, the styles definition is just below the code I've included above. It looks like this:

styles>
definition>
style type='animation' name='animX' param='_xscale' start='0' duration='1' />
style type='animation' name='animY' param='_yscale' start='0' duration='1' />
style name='TTipFont' type='font' isHTML='1' color='FFFFFF' bgColor='0000FF' size='11'/>
style name='HTMLFont' type='font' color='333333' borderColor='CCCCCC' bgColor='FF0000'/>
style name='myShadow' type='Shadow' distance='1'/>

/definition>

application>
apply toObject="PLOT" styles="animX,animY"/>
apply toObject='MARKERLABELS' styles='HTMLFont,myShadow' />
apply toObject='TOOLTIP' styles='TTipFont' />
/application>
/styles>
/map>


Thank you in advance for your help.

Keith Morse
Denver Post


Keith Morse
denverpost.com
Post #3990
Posted 1/22/2008 12:19:42 AM
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Moderators
Last Login: Today @ 1:19:54 AM
Posts: 870, Visits: 1,386
hi, I am afraid you cannot do this

Regards,

Sudipto Choudhury
FusionCharts Team
Post #4000
Posted 1/22/2008 8:21:54 AM
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Group: Forum Members
Last Login: 11/13/2008 5:00:28 PM
Posts: 19, Visits: 44
Thanks. I'll take a different approach.

Keith Morse
denverpost.com
Post #4006
« Prev Topic | Next Topic »


Permissions Expand / Collapse

All times are GMT -7:00, Time now is 3:57am


Execution: 0.047.