[email protected] Report post Posted May 24, 2007 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: 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
Pallav Report post Posted May 27, 2007 Hi, <set> color is meant for respective bars only. For legend colors, <dataset>'s color attribute is used. Share this post Link to post Share on other sites