Sign in to follow this  
Guest Basundhara Ghosal

Hide values on the legend (Grid component)

Recommended Posts

I'm using the Grid component as the legend for a pie chart. I am using the same data source for the pie chart and the grid.

Is it possible to tell the Grid to only show the labels (without the corresponding value)? I already show the values on the pie so I don't need them on the Grid.

One way of doing it is to use two different data sources (one for the grid, one for the pie chart) but it is not very efficient. Any other suggestions?

Thanks 

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi Max,

Welcome to FusionCharts forum. :D

Please try not mentioning the values in the <set> element of the XML file of the Grid chart.

Ref.- <chart palette='2' caption='Company Revenue%'>

  <set label="Item A" value="" />

  <set label="Item B" value="" />

  <set label="Item C" value="" />

  <set label="Item D" value="" />

  <set label="Item E" value="" />

  <set label="Item F" value="" />

  <set label="Item G" value="" />

  <set label="Item H" value="" />

  <set label="Item I" value="" />

</chart>

Hope this helps. :)

Share this post


Link to post
Share on other sites

Thank you for your reply. Actually that is exactly what I am trying to avoid. I would need to generate 2 different XML files for this.

- One with the values (for the Pie Chart)

- One without the values (for the Grid)

That is a huge overhead.

Anyway if it is the only way of doing it then I guess I have no other options.

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi Max,

You are most welcome. :D

I am afraid, as you have already stated, you would need to generate 2 different XML files for this.

- One with the values (for the Pie Chart)

- One without the values (for the Grid)

Also, please refer to the link below for further details on the same.

Ref.- http://www.fusioncharts.com/docs?/Grid_Parameters.html

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