dojchek

Members
  • Content count

    5
  • Joined

  • Last visited

About dojchek

  • Rank
    Forum Newbie
  1. Hello, I need to update the chart data - (from the JSON). However I am slightly confused on how to do it properly. The first solution is to render the chart on init and use setJSONData() method for data updates. The thing which confuses me is the remark from fusioncharts documentation : So, my second solution was to re-render the chart every time new data appears, by disposing the "chart" and then creating a new chart object (with datasource set to new data) and finally render it with render() function. Both approaches seems to work, where the 2nd one is a bit faster in most cases (depends on chart type/data size). My question is - What are the pros/cons for each approach and which one is actually preferable? All the fiddle examples and documentation point me to use setChartData/setJSONData, but there is that one remark which makes me think it should be done via FusionCharts constructor and dataSource attribute. Thanks
  2. Invert the Legend Interaction

    Thank you very much Akash! I was doing basically the same as you described, but with larger datasets it can get slow in perf (time needed to render the chart with setJsonData()). I will definitely use this approach, but will have to tweak it a bit more.. The other thing I need here is to enable adding up more series with ctrl+click on legend item (forgot to mention that one in first post). So the complete functionality I need is: 1) Click on legend item - shows the clicked series and hides the rest 2) ctrl + click on legend item - shows the clicked series and doesn't hide the rest (very similar to the default behavior). I already have an idea how to implement this, although the ctrl+click event is not supported by fusioncharts API, right? Thank you!
  3. Hello FusionCharts, Is there a nice way to invert the 'chart interactivity'? Current/default functionality is when you click on a legend item (displayed) it hides it's related series and I'm looking for the opposite functionality - Show only the series of a clicked legend item, while hiding all the others. It should work this way no matter if the item is displayed or hidden (visible=1 or visible=0). I have a work-around but not happy with it's performance - I simply change the data on legend click event, so that only the clicked one is visible (<dataset .. visible='1' >) while keeping the others on <dataset .. visible='0' >. However, this gets slow with lots of series/legend items, since I have to modify the data (with visible attr) and re-render the chart every time the user clicks on a legend item. It would be nice if the functionality used by fusioncharts to hide/show series on legend click would be provided as API (maybe it's already there?).
  4. Wow! Really nice that this feature is implemented Thank you very much for the input and provided jsfiddle example!
  5. Hello, Is there any update on this one? Are there any plans to support this feature? The proposed walk-around does the work, but doesn't scale well (when having a lot of series). However it did inspire me to come up with similar solution - As using the angular+ngrx, it can get quite easy to just prune out the data for the 'switched off' series entity (on legend events). Still, I'm interested if this feature planned to be implemented?