The problem was I copied out of jsfidle and my copy included comments, eg
... part of the json string sent to high charts
String json = "{"
+ "chart: { "
... other stuff...
+ " plotBands: [{ "
+ " from: 0, "
+ " to: 6.9, "
+ " color: '#99DD66' // green "
+ " }, { "
... etc
Having the javascript comment in the json string (as copied from jsfiddle) does not work… took a bit to find it, but now I can get the look I want via setting pure json… (still will be good to get the other properties in the java interface at some time).
Hi, you are right, there’s some missing API for pivot and overshoot configuration. You can create a ticket in
https://dev.vaadin.com/ about it.
In the meantime as a workaround you can extend a class and add the missing API, for instance:
public class PlotOptionsGaugeWithOvershoot extends PlotOptionsGauge {
private Number overshoot;
public Number getOvershoot() {
return overshoot;
}
public void setOvershoot(Number overshoot) {
this.overshoot = overshoot;
}
}