Jump to content
Software FX Community

Allow the user to Show/hide series on a chart


epenetar

Recommended Posts

We are building Charts which contain 10-15 series of data. When the user first comes in, we only want to display 2 series, and have the user be able to choose which other series to compare this against. Right now,  we are filtering out the DataTable before feeding it to ChartFx, so that it only displays the 2 series, and using a custom legend with checkboxes to allow the user to hide/show additional series.

This does not work well with the ASP.NET lifecycle, as the postback click event of the checkbox is being lost as it is rendered dynamically. Also, when exporting the chart, the legend is not with it, as it is outside of the chart itself.

 So, is there any way to pass all 10-15 rows in the DataTable to the chart, have it display only 2, and then either through a context menu or some other way, have the user choose the additional series to show/hide?

 

Thanks

 

Eric Penetar

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...