Support for the full set of Highstocks options via convenient Java wrapper classes will be coming in a future release of GWT Highcharts. Until that gets flushed out within GWT Highcharts though, you'd need to set this up on your own by creating your own "Button" class that extends "Configurable", and then creating a real Java array of the buttons. E.g. declare a new class like so:
private class Button extends Configurable<Button> { }
And then, do something like the following to set the button configuration options on the range selector:
StockChart chart = new StockChart();
chart.setRangeSelector(new RangeSelector()
.setOption("buttons", new Button[] { new Button()
.setOption("type", "year")
.setOption("count", 1)
})
);
I haven't tried that myself though, so if it doesn't work just let us know.
Last edit: Shawn Quinn 2011-11-21
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Support for the full set of Highstocks options via convenient Java wrapper classes will be coming in a future release of GWT Highcharts. Until that gets flushed out within GWT Highcharts though, you'd need to set this up on your own by creating your own "Button" class that extends "Configurable", and then creating a real Java array of the buttons. E.g. declare a new class like so:
And then, do something like the following to set the button configuration options on the range selector:
I haven't tried that myself though, so if it doesn't work just let us know.
Last edit: Shawn Quinn 2011-11-21