java - FusionCharts: X-axis values not like expected -
i using fusioncharts i'm facing problems. 0 on x-axis @ index not 0 (i marked in red color) on the snapshot below.
another problem line not drawn?
this figure :
this xml code:
<chart caption="" xaxisname="quantity (finished items)" yaxisname="cost" numdivlines="9" linethickness="2" showvalues="0" showlegend="1" canvaspadding="0" legendiconscale="1.4" numvisibleplot="15"> <categories> <category x="0" label="0"/> <category x="5000" label="5000"/> <category x="10000" label="10000"/> <category x="15000" label="15000"/> <category x="20000" label="20000"/> <category x="25000" label="25000"/> <category x="30000" label="30000"/> <category x="35000" label="35000"/> <category x="40000" label="40000"/> <category x="45000" label="45000"/> <category x="50000" label="50000"/> <category x="55000" label="55000"/> <category x="60000" label="60000"/> <category x="65000" label="65000"/> <category x="70000" label="70000"/> </categories> <dataset seriesname="flow name" drawline="1 " anchorsides="20" anchorradius="5"> <set x="0" y="169.13"/> <set x="5000" y="9046.95"/> <set x="10000" y="17924.78"/> <set x="15000" y="26802.6"/> <set x="20000" y="35680.42"/> <set x="25000" y="44558.25"/> <set x="30000" y="53436.07"/> <set x="35000" y="62313.9"/> <set x="40000" y="71191.72"/> <set x="45000" y="80069.54"/> <set x="50000" y="88947.38"/> <set x="55000" y="97825.2"/> <set x="60000" y="106703.02"/> <set x="65000" y="115580.84"/> <set x="70000" y="124458.66"/> </dataset> <dataset seriesname="b1" drawline="1 " anchorsides="3" anchorradius="5"> <set x="0" y="123.16"/> <set x="5000" y="271.37"/> <set x="10000" y="419.59"/> <set x="15000" y="567.8"/> <set x="20000" y="716.02"/> <set x="25000" y="864.23"/> <set x="30000" y="1012.45"/> <set x="35000" y="1160.66"/> <set x="40000" y="1308.88"/> <set x="45000" y="1457.09"/> <set x="50000" y="1605.31"/> <set x="55000" y="1753.52"/> <set x="60000" y="1901.73"/> <set x="65000" y="2049.95"/> <set x="70000" y="2198.16"/> </dataset> </chart>
it seems charttype
selecting not scatter
(inferring screenshot, mscolumn2d
or other multi-series column chart). wherever in code doing new fusioncharts(/*...*/);
, try changing chart type scatter
. refer the fusioncharts documentation link explaining how change chart type