Sign in to follow this  
Pri

Problem With Mapping

Recommended Posts

Hi All,

 

I am trying to create a line chart where i have 8 values only 1 of the 8 values is 1 rest are 0. When I try to plot this i get the following chart:

 

fusion charts prb.bmp

 

The problem is the values displayed on Y- Axis. When I put numDivLines='0' I get the following chart where the mapping is not correct, as it marks a value which is less than 1.

 

fusion charts prb.bmp

 

Can you please help me with this?

 

Thank you,

Pri

Share this post


Link to post
Share on other sites
Guest Sumedh

Hi,

 

A warm welcome to FusionCharts Forum! smile.gif

 

Apologies for the delay.

 

Can you please share your chart XML? It would be helpful to look into it.

Share this post


Link to post
Share on other sites
Guest Sumedh

Hi,

 

Thanks for sharing the chart XML.

 

Can you please set "formatNumberScale" attribute as "1" and try once again?

 

Ref. Code:

<chart ... formatNumberScale='1'>

 

The images that you attached are different. Please find attached screen-shot rendered using the XML that you have sent.

post-24802-0-48364800-1353572836_thumb.png

Share this post


Link to post
Share on other sites

Hi,

 

I am sorry for attaching different xml. But the difference was about just 1 number in dataset. Rest the XML was same. Also thanks a lot for your suggestion this did solve my problem, but is there any way that I can avoid decimal numbers appearing on y-axis?

 

 

Thank you,

Pri.

Share this post


Link to post
Share on other sites
Guest Sumedh

Hi Pri,

 

In this scenario, since the maximum data-plot value is "1" and default number of "divLines" are four, the values for Y axis are in decimal (which is automatically calculated by FusionCharts).

 

So, if you want to show the values without the decimal either you would need to reduce the number of "divLines" or you will get duplicate values on Y- axis levels.

 

To adjust the number of "divLines" set "adjustDiv" attribute as "0" and provide some higher value i.e., greater than "1" as the yAxis maximum limit value.

 

Ref. Code:

<chart ... formatNumberScale='0' numDivLines='1' adjustDiv='0' yAxisMaxValue='2'>

 

Also, please find attached screen-shot for your reference.

post-24802-0-08547500-1353669196_thumb.png

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