Sign in to follow this  
dcwebcat

Hiding Specific Set Labels On Area2D Chart

Recommended Posts

Hello -

 

I am working on an Area2D chart. I have over 2,000 data points. These range from the year 2001 through 2011. I only want to display 2001 on the left side of the X axis and 2011 all the way over to the right. Below is an example of my XML. All of the years are still showing up for each data point. Since there are so many data points I am only posting a sample of it. I have not gotten around to customizing colors and such yet.

Thanks in advance for any help!!! :D

 

<chart formatnumberscale="0" showValues='0' showLabels='0' caption="Sample Chart" decimalprecision="8" palette="1">

<set label="2001" value="1000.0000" showLabels='1'/>

<set label="2002" value="1005.8846" '/>

<set label="2002" value="1015.1330" />

<set label="2002" value="1021.4401" />

<set label="2003" value="1014.8062" />

<set label="2003" value="1011.4288" />

<set label="2004" value="1006.6202" />

<set label="2005" value="1007.8673" />

<set label="2005" value="998.3737" />

<set label="2006" value="992.1080" />

<set label="2007" value="998.8894" />

<set label="2007" value="982.7428" />

<set label="2008" value="992.6132" />

<set label="2009" value="982.7663" />

<set label="2009" value="975.5581" />

<set label="2010" value="1000.2922" />

<set label="2010" value="1002.7486" />

<set label="2010" value="1002.0056" />

<set label="2011" value="993.4601" />

<set label="2011" value="983.7045" />

<set label="2011" value="984.5471" showLabels='1'/>

</chart>

Edited by dcwebcat

Share this post


Link to post
Share on other sites
Guest Bindhu

Hi,

 

Please modify the XML as below,

 

<chart formatnumberscale="0" showValues='0' showLabels='0' caption="Sample Chart" decimalprecision="8" palette="1">
  <set label="2001" value="1000.0000" showLabel='1'/>
   ....
   <set label="2011" value="984.5471" showLabel='1'/>
</chart>

 

Please find attached screen shot of the chart rendered with the above settings applied.

 

At the set element level it is "showLabel" and at the chart element level it is "showLabels".

 

Hope this clarifies.

post-23884-0-32256800-1342091661_thumb.png

Edited by Bindhu

Share this post


Link to post
Share on other sites

Thank you so much!! Unfortunately, when I place the remaining data into the XML which is a few thousand, the 2001 and the 2011 display as 2. on the left side and 2. on the right side. So, in other words it has the number 2 and then a period after it on both ends. When I use your example though before I add in ALL of the other data, the 2001 and 2011 display perfectly.

 

Not sure why. :blink:

Share this post


Link to post
Share on other sites
Guest Bindhu

Hi,

 

Its because there is no enough space available for the data label to be displayed.

 

FusionCharts charting engine calculates this space automatically based on the number of data plots and the width of the chart.

 

Please increase the chart width to see the complete label or please define the attribute "labelDisplay" and set it to "ROTATE".

 

Ref. Code:

 <chart formatnumberscale="0" showValues='0' showLabels='0' caption="Sample Chart" decimalprecision="8" palette="1" labelDisplay='rotate'> .............</chart>

 

Hope this helps!

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