user1397

Members
  • Content count

    2
  • Joined

  • Last visited

About user1397

  • Rank
    Forum Newbie
  1. Getting list of hidden legend items

    Just in case someone else runs into this problem, I hacked together a fix by adding an event listener to the "LegendItemClicked" event. In the listener I took the clicked legend item found in the arguments object that's passed into the callback and added it to a list I have kept on the chart in the FusionCharts.items list. Later when the chart loads, I iterate over the dataset and set "initiallyHidden" to 1 if it's in the list I have stored on that chart.
  2. Hey, I've run into a bit of an issue while implementing a zoom line chart. I'd like for users of the chart to be able to idle on the page and have it periodically refresh with new information from my database, but I noticed that if the user hides a few items using the interactive legend, once I refresh (by making a call to setJSONData) I end up losing the user's current legend settings. Is there a way for me to keep track of what items the user has set hidden so I can then hide them again using the initiallyHidden attribute? Here's a jsfiddle showing my issue: http://jsfiddle.net/WDsZF/523/