Sign in to follow this  
Pallav

Legend does not Match Chart

Recommended Posts

I have changed the colors via the <set xml attribute color.  It does the expected job for the chart, but does not indicate the correct color in the legend.  Perhaps I am not doing something correctly:

e4b5b684-62c4-403f-8e0b-2b81.bmp

Here is the code that generated the above chart:

  <!-- START Script Block for Chart chart5133 --><?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

  <span id="chart5133Span">chart5133</span>

  <script type="text/javascript">

  //Instantiate the Chart

  var chart_chart5133 = new FusionCharts("/FusionCharts/StackedColumn3D.swf", "chart5133", "700", "600", "0", "0");

  //Provide entire XML data using dataXML method

  chart_chart5133.setDataXML("<chart  borderThickness='3'  caption='Backlog by Warehouse and Market'  yAxisName='Dollars'  labelDisplay='ROTATE'  showBorder='1'  decimals='0'  xAxisName='Warehouse-Market'  showValues='1'  numberPrefix='$'  ><categories><category label='DRS-DOMESTIC' /><category label='DRS-INTERNATIONAL' /><category label='MX-DOMESTIC' /><category label='SF-DOMESTIC' /><category label='SF-INTERNATIONAL' /></categories><dataset seriesname='On%20Time' ><set value='44842.5' color='00ff00'  /><set value='195971.1' color='00ff00'  /><set value='133997.57' color='00ff00'  /><set value='839379.04' color='00ff00'  /><set value='283617.89' color='00ff00'  /></dataset><dataset seriesname='Late' ><set value='18958.74' color='ff0000'  /><set value='18302.5' color='ff0000'  /><set value='3600.41' color='ff0000'  /><set value='13440.54' color='ff0000'  /><set value='45977.84' color='ff0000'  /></dataset></chart>");

  //Finally, render the chart.

  chart_chart5133.render("chart5133Span");

  </script>

  <!-- END Script Block for Chart chart5133 -->

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this