Sign in to follow this  
mbielen

Missing Labels

Recommended Posts

I have a stacked 3D column chart that displays most of the total column values properly.

If fusion charts calculates the maximum value of the chart at 100 and I have a bar at 98, the value will not display. Values that are not as close the the axis maximum display fine. If the maximum chart colum is 100, the value also displays.

How can I get all the total values to always display?

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi,

Welcome to FusionCharts forum. :)

Could you please send us the sample code that you are using to render the chart as an attachment?

Also, please send us the screen-shot of your requirement as an attachment.

Awaiting your reply. :hehe:

Share this post


Link to post
Share on other sites

Hello:

I have attached the XML source code and the jpeg of the Scrolling Stacked 2D Column chart. You will notice that the Service column is not displaying the total of 108. The maximum axis value generated by Fusion charts is 110. The UM-Check column does display a valid value.

I have also had instances where the value appears above the maximum axis value or it is partially cut off. The missing value appears randomly very few times, but when it does appear, it can always be duplicated.

Any info or suggestions are appreciated.

Thanks

Mike

ScrollStackedColumn2D Missing Label.txt

post-8680-128441584301_thumb.jpg

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi Mike,

We have tested your XML codes in our lab.

In case you wish to display the yaxismax value as '108', please try setting the value in the "yAxisMaxValue" attribute in the <chart> element to '108'.

As in your XML codes you have mentioned the value for 'yAxisMaxValue' as '5', the chart is calculating the value accordingly.

I hope this helps. :) 

Share this post


Link to post
Share on other sites

Hello:

I have done the following:

1) Remove the yAxisMaxValue='5' from the <chart> element

2) Manually adjust the yAxisMaxValue='108' in the <chart> element

Please test it for yourself using the provided XML above. The value does not get displayed. FusionCharts should auto-calculate the max value and add padding when required to display all the values. This is not always happening such as in the "Service" column of the chart.

If I manually set yAxisMaxValue='120', the value does appear since there is enough room for the data point.  However, I can't set the yAxisMaxValue on-the-fly because I'd have to read all of the chart data to obtain the max value, add maxValue+10 to manually pad the yAxisMaxValue then re-read the data to render the chart. This would double the time required to generate a chart.

The purpose of the yAxisMaxValue='5' is that if we have a chart value that is only 1 for example, Fusion Charts defaults to decimals such as 0.2, 0.4, 0.6, 0.8, 1.0 and 1.2 which would not make sense when viewing the chart. By having the yAxisMaxValue at 5, integers are always displayed.

Any further suggestions to correct this issue are welcome.

Thank you.

 

 

 

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