Sign in to follow this  
Koushik

Y-Axis Line not reaching 100% in MSColumn3DLineDY.swf chart

Recommended Posts

Hi,

I am working on FusionCharts and using the chart 'MSColumn3DLineDY.swf' to display data. The XML which I am using for this chart is as follows:

<chart palette='1' caption='' shownames='1' showvalues='0' numberPrefix='' connectNullData='0' PYAxisName='Image Volume' SYAxisName='Total Percent Printed'  showYAxisValues='1' numDivLines='1' formatNumberScale='0' SYAxisMaxValue='100' SYAxisMinValue='0'>

<categories>

<category label='Wed 12/16' />

<category label='Tue 12/19' />

<category label='Mon 12/22' />

</categories>

<dataset seriesName='Total Images' color='FF6600' showValues='0'>

<set value='2876' />

<set value='4899' />

<set value='5390' />

</dataset>

<dataset seriesName='Total Documents' color='6699CC' showValues='0'>

<set value='11540' />

<set value='19872' />

<set value='23415' />

</dataset>

<dataset seriesName='Percent Printed' color='000000' showValues='0' parentYAxis='S' >

<set value='52' />

<set value='86' />

<set value='100' />

</dataset>

</chart>

 

The code I am using to display the chart is as follows:

    <div id="chartPrint" align="center"></div>

<script type="text/javascript">

var chart = new FusionCharts ("Data/Charts/MSColumn3DLineDY.swf", "ChartId1", "370", "300", "0", "1");

chart.setDataURL("Data/CVChartData/PrintDate.xml");

chart.render("chartPrint");</script>

  </script>

The problem I am having is, when the line 'S' is rendered, even though the data shows 100%, the line actually doesn't touch the 100 mark in the Y-axis. It stays well below 100 though actual value for the point is 100. See the snapshot below.

74c9c5c4-bcc9-413b-94e2-b996.jpg

Can anyone guide me to figure out how to solve this issue and have the line reach 100% mark?

Thanks,

Edited by Guest

Share this post


Link to post
Share on other sites

Hi,

 
Could you please try using use3DLineShift='0'?
 
"By default, when a line dataset is rendered over a column 3D dataset, the line dataset shifts in the z-dimension to give a 3D perspective. But, if you do not wish to add the perspective to the line dataset, you may set this attribute as 0."

Share this post


Link to post
Share on other sites

Thanks for your reply.

I tried putting use3DLineShift='0' on the 1st line of XML (as chart attribute) and also on "<dataset seriesName='Percent Printed' " entry in XML. But it didn't fix my problem. As you mentioned this is a problem for 3D rendering,do you think this will be solved if I use the 2D version of MSColumn and Line combination?

Thanks,

Share this post


Link to post
Share on other sites

Hi,

 
This is a new feature in FusionCharts V3.1, so if it is not working then please update your chart to version 3.1 and try again.
Also this will not be an issue, if you use MSColumn2D chart.

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