Trygve Report post Posted September 23, 2010 Hi, I have several multiline charts where one of the data-set is much much bigger than the others making them unreadable. In 3.2 I can hide a data-set, but to be able to read the smaller data-sets I need the chart to automatic rescale the yaxis when a data-set is enabled or disabled. Is this possible? If not, are there any alternatives? (like enabling/disabling datasets from outside the chart and using javascript to redraw the chart) Thanks! Trygve Share this post Link to post Share on other sites
Guest Basundhara Ghosal Report post Posted September 23, 2010 Hi Trygve , Welcome to FusionCharts Forum. I am afraid, FusionCharts does not support the same as of now. However, you can always use the interactive legends of the multi-series charts(v 3.2) to enable or disable the dataplots for better readibility. I hope this helps. Share this post Link to post Share on other sites
Trygve Report post Posted September 27, 2010 Hi Basundhara, and thanks I have already implemented interactive legends to disable data-sets, that is where the problem lies. When I disable the large dataset the small ones are still just as unreadable since they are all compressed together at the bottom. Two images attached to illustrate this. With large dataset: After hiding large dataset: So, hiding the large data-set does absolutely nothing with the readability But is it possible to change the xml-url and regenerate the chart through javascript? If so, I could keep the disable/enable dataset buttons outside the chart and add code that will first regenerate the XML with/without the dataset and then make the chart regenerate itself. Share this post Link to post Share on other sites
Guest Basundhara Ghosal Report post Posted September 27, 2010 Hi, Thanks for your reply. But is it possible to change the xml-url and regenerate the chart through javascript? Please refer to the FusionCharts and JavaScript section of the online documentation of FusionCharts. Ref.- http://www.fusioncharts.com/docs --> FusionCharts and JavaScript could keep the disable/enable dataset buttons outside the chart and add code that will first regenerate the XML with/without the dataset and then make the chart regenerate itself. I am afraid, as of now, FusionCharts does not support the same. I hope this helps. Share this post Link to post Share on other sites
Trygve Report post Posted September 29, 2010 I am afraid, as of now, FusionCharts does not support the same. I hope this helps. First! Sure it's possible I managed to do this by creating the chart as a javascript object and creating a legend outside the chart. When clicking the legend, a PHP-script in an iframe updates the XML and changes the XML-url of the chart. Its not pretty as the whole chart re-renders instead of just changing the contents, but it works. Share this post Link to post Share on other sites
Sanjukta Report post Posted September 29, 2010 Hey, Glad that your issue is resolved. Thanks for sharing the idea. Happy FusionCharting! Share this post Link to post Share on other sites
teralco Report post Posted May 29, 2012 Hi, FusionCharts 3.2.2 permit rescale Y Axis from the legend when a dataset is disabled? Thanks. Share this post Link to post Share on other sites
Swarnam Report post Posted May 29, 2012 Hey, FusionCharts does not support rescaling of Y axis depending on the legend click. Share this post Link to post Share on other sites