Can this be done dynamically. I get a legend-less chart fine if I do this at chart create time, but setting enabled false once rendered doesn't seem to "hide" an already displayed legend.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Note that the above needed Highstock 1.1.6 to work. Superficially it seems ok with current GWT wrapper although there could be incompatibilities I haven't noticed yet.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Yeah, what you did there should work well with GWT Highcharts. If/when the Highcharts guys add a specific API method to enable/disable the legend on the fly, we can get an equivalent wrapper method added to GWT Highcharts.
Thanks for posting your solution!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Overall Highstock 1.1.6 seems to work in place of 1.1.5 in current release. Have observed one oddity where a stacked area plot has color fill on first plot, but on later the fill seems to get lost and just show stacked lines with a white fill.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Can this be done dynamically. I get a legend-less chart fine if I do this at chart create time, but setting enabled false once rendered doesn't seem to "hide" an already displayed legend.
Highcharts have come back with a way to do this in JS:
But I can't see any GWT bindings in the moxie layer that would let me do an equivalent from Java?
With help from the Highcharts guys - I managed to get dynamic enable/disable of legends working. It needs some native code:
Which you then call from your Java code e.g.
The original JS fiddle example they sent me is here:
http://jsfiddle.net/5m9JW/162/
Note that the above needed Highstock 1.1.6 to work. Superficially it seems ok with current GWT wrapper although there could be incompatibilities I haven't noticed yet.
Yeah, what you did there should work well with GWT Highcharts. If/when the Highcharts guys add a specific API method to enable/disable the legend on the fly, we can get an equivalent wrapper method added to GWT Highcharts.
Thanks for posting your solution!
Welcome.
Overall Highstock 1.1.6 seems to work in place of 1.1.5 in current release. Have observed one oddity where a stacked area plot has color fill on first plot, but on later the fill seems to get lost and just show stacked lines with a white fill.