Sign in to follow this  
doraemonblue

Dynamic Legend

Recommended Posts

Hi! I've this line chart (MSLine) that shows all the financial years of the power usage.

But I only want the legend to only display one year (probably the latest year) instead of showing everything at one go.

Then only allowing the user to click on the legend if they want to see any other specific year.

Is that possible?

 

The graph is designed like this.

allyears.bmp

 

 

But i want it to be only like this, when the graph is shown to user before even they choose any selection.

oneyear.bmp

 

Share this post


Link to post
Share on other sites

Hey,

 

No, it is not possible to load only one data set series and disable the others in the legend while rendering in a chart. Rendering a chart, by default loads all data set series.

 

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