Am running between things today so I'm not able to debug your example right now, but I'd expect GWT Highcharts could support that chart type since it's just a variant of a "solid gauge" type. Here's a quick working "solid gauge" example chart that I'm copying/pasting from elsewhere in hopes that it's of help to you:
final Chart chart = new Chart()
.setType(Series.Type.SOLID_GAUGE)
.setPane(new Pane()
.setCenter("50%", "50%")
.setSize("140%")
.setStartAngle(-90)
.setEndAngle(90)
.setBackground(new PaneBackground()
.setBackgroundColor("#EEE")
.setInnerRadius("60%")
.setOuterRadius("100%")
.setOption("shape", "arc")
)
);
chart.setGaugePlotOptions(new GaugePlotOptions()
.setDataLabels(new DataLabels()
.setEnabled(true)
.setY(30)
.setFormat("{point.y} km/h")
)
.setPivotOptions(
new Pivot()
.setRadius("2%")
)
.setDialOptions(
new Dial()
.setRearLength("0%")
.setBaseWidth(10)
)
);
// Primary axis
chart.getYAxis(0)
.setLineWidth(0)
.setMinorTickInterval(null)
.setTickPixelInterval(400)
.setTickWidth(0)
.setAxisTitle(new AxisTitle()
.setY(-70)
)
.setLabels(new YAxisLabels()
.setY(16)
);
chart.setSolidGaugePlotOptions(new SolidGaugePlotOptions()
.setDataLabels(new DataLabels()
.setY(5)
.setBorderWidth(0)
.setUseHTML(true)
)
);
final Series series = chart.createSeries();
chart.addSeries(series
.setName("Random speed")
.addPoint(80)
);
final Timer tempTimer = new Timer() {
@Override
public void run() {
long inc = Math.round((Random.nextDouble() - .5) * 20);
long cur = series.getPoints()[0].getY().longValue();
series.getPoints()[0]
.update(cur + inc);
}
};
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The solid gauge works for me. But I have no idea what I have to change to make it a activity gauge. The activity gauge has the same type "solidgauge", not sure what makes the difference ^^
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hey Guys,
is there a way to get the Activity Gauge working in GWT? Seems to be not implemented yet by GWT Highcharts.
Is there a way to set the type manually without the enum type or another workaround?
http://www.highcharts.com/demo/gauge-activity
I tried to modify this code for the solid gauge, but did not get it working:
Best regards
Jan
Last edit: jan10101 2017-01-03
Am running between things today so I'm not able to debug your example right now, but I'd expect GWT Highcharts could support that chart type since it's just a variant of a "solid gauge" type. Here's a quick working "solid gauge" example chart that I'm copying/pasting from elsewhere in hopes that it's of help to you:
Thanks for reply!
The solid gauge works for me. But I have no idea what I have to change to make it a activity gauge. The activity gauge has the same type "solidgauge", not sure what makes the difference ^^