onkar Report post Posted August 21, 2014 Multiseries column chart do not show legend. here is my code .Can anyone help me? <!-- Using ASP.NET FusionCharts v3.2.2.1 Wrapper and JavaScript rendering --> <!-- START Script Block for Chart chartTurnoverBar --> <div id='chartTurnoverBarDiv' > Chart. </div> <script type="text/javascript"> if (FusionCharts && FusionCharts("chartTurnoverBar") ) FusionCharts("chartTurnoverBar").dispose(); var chart_chartTurnoverBar = new FusionCharts({"dataFormat" : "xml", "scaleMode" : "noScale", "renderAt" : "chartTurnoverBarDiv", "id" : "chartTurnoverBar", "debugMode" : "0", "lang" : "EN", "swfUrl" : "/Charts/MSColumn2D.swf", "wMode" : "opaque", "width" : "450", "height" : "400", "registerWithJS" : "1","dataSource" : "<chart caption='Turnover' decimals='0' showLegend='1' showLabels='1' showvalues='1' showExportDialog='1' exportShowMenuItem='0' exportEnabled='1' exportHandler='Charts/ExportHandlers/ASP_Net/FCExporter.aspx' exportAtClient='0' exportAction='save' exportFilename='ChartsImages' usePlotGradientColor='1' plotFillRatio='60,40' plotFillAlpha='100,30' plotBorderColor='#dcdcdc' plotFillAngle='0' useRoundEdges='0' bgColor='FFFFFF'> <categories> <category label='July-14' /> <category label='June-14' /> <category label='May-14' /> </categories> <dataset seriesName='turnover' color='007d5f,0aa681' > <set value='-80910.3700' /> <set value='-94076.9000' /> <set value='-108524.0200' /> </dataset> <dataset seriesName='purchase' color='31bab2,69f4f1' > <set value='3696.5600' /> <set value='72390.1500' /> <set value='69483.1200' /> </dataset> <dataset seriesName='sell' color='5890cb,77b8fc' > <set value='389.7300' /> <set value='767.2700' /> <set value='2863.5700' /> </dataset> <dataset seriesName='Profit' color='4c5572,7381a4' > <set value='76824.0800' /> <set value='20919.4800' /> <set value='36177.3300' /> </dataset> </chart>"}).render(); </script> <!-- END Script Block for Chart chartTurnoverBar --> Share this post Link to post Share on other sites
Sanjukta Report post Posted August 21, 2014 Multiseries column chart do not show legend. here is my code .Can anyone help me? <!-- Using ASP.NET FusionCharts v3.2.2.1 Wrapper and JavaScript rendering --> <!-- START Script Block for Chart chartTurnoverBar --> <div id='chartTurnoverBarDiv' > Chart. </div> <script type="text/javascript"> if (FusionCharts && FusionCharts("chartTurnoverBar") ) FusionCharts("chartTurnoverBar").dispose(); var chart_chartTurnoverBar = new FusionCharts({"dataFormat" : "xml", "scaleMode" : "noScale", "renderAt" : "chartTurnoverBarDiv", "id" : "chartTurnoverBar", "debugMode" : "0", "lang" : "EN", "swfUrl" : "/Charts/MSColumn2D.swf", "wMode" : "opaque", "width" : "450", "height" : "400", "registerWithJS" : "1","dataSource" : "<chart caption='Turnover' decimals='0' showLegend='1' showLabels='1' showvalues='1' showExportDialog='1' exportShowMenuItem='0' exportEnabled='1' exportHandler='Charts/ExportHandlers/ASP_Net/FCExporter.aspx' exportAtClient='0' exportAction='save' exportFilename='ChartsImages' usePlotGradientColor='1' plotFillRatio='60,40' plotFillAlpha='100,30' plotBorderColor='#dcdcdc' plotFillAngle='0' useRoundEdges='0' bgColor='FFFFFF'> <categories> <category label='July-14' /> <category label='June-14' /> <category label='May-14' /> </categories> <dataset seriesName='turnover' color='007d5f,0aa681' > <set value='-80910.3700' /> <set value='-94076.9000' /> <set value='-108524.0200' /> </dataset> <dataset seriesName='purchase' color='31bab2,69f4f1' > <set value='3696.5600' /> <set value='72390.1500' /> <set value='69483.1200' /> </dataset> <dataset seriesName='sell' color='5890cb,77b8fc' > <set value='389.7300' /> <set value='767.2700' /> <set value='2863.5700' /> </dataset> <dataset seriesName='Profit' color='4c5572,7381a4' > <set value='76824.0800' /> <set value='20919.4800' /> <set value='36177.3300' /> </dataset> </chart>"}).render(); </script> <!-- END Script Block for Chart chartTurnoverBar --> Hi, We are able to view the chart with legend, using your XML. Please check with the attached screenshot for your reference. Also, we would like to confirm if you are using the latest version, i.e, FusionCharts v3.4 for rendering the chart. The process to implement it with ASP.Net remains same, just by explicitly rendering the chart in JavaScript mode and removing the .swf extension as FusionCharts v3.4 does not support Flash any further. Ex: FusionCharts.SetRenderer("javascript"); ... Literal1.Text = FusionCharts.RenderChart("MSColumn2D", "Data/Data.xml", "", "chart1", "600", "300", false, true); Hope this helps. Share this post Link to post Share on other sites