We do have a new showcase application coming with a bunch of new examples in it, including gauge's. Until that gets published, here's the gauge example source code in case it helps:
publicChartcreateChart(){finalChartchart=newChart().setType(Series.Type.GAUGE).setAlignTicks(false).setPlotBackgroundImage(null).setBorderWidth(0).setPlotShadow(false).setChartTitle(newChartTitle().setText("Speedometer with dual axes")).setPane(newPane().setStartAngle(-150).setEndAngle(150));chart.setGaugePlotOptions(newGaugePlotOptions().setDataLabels(newDataLabels().setEnabled(true).setY(30).setFormat("{point.y} km/h")).setPivotOptions(newPivot().setRadius("2%")).setDialOptions(newDial().setRearLength("0%").setBaseWidth(10)));//Primaryaxischart.getYAxis(0).setMin(0).setMax(200).setTickPosition(Axis.TickPosition.INSIDE).setMinorTickPosition(Axis.TickPosition.INSIDE).setLineColor("#339").setTickColor("#339").setMinorTickColor("#339").setOffset(-25).setLineWidth(2).setTickLength(5).setMinorTickLength(5).setEndOnTick(false).setLabels(newYAxisLabels()//Thereisnodocumented"distance"optionforgaugechartaxes.setOption("distance",-20));//Secondaryaxischart.getYAxis(1).setMin(0).setMax(124).setTickPosition(Axis.TickPosition.OUTSIDE).setMinorTickPosition(Axis.TickPosition.OUTSIDE).setLineColor("#933").setTickColor("#933").setMinorTickColor("#933").setOffset(-20).setLineWidth(2).setTickLength(5).setMinorTickLength(5).setEndOnTick(false).setLabels(newYAxisLabels()//Thereisnodocumented"distance"optionforgaugechartaxes.setOption("distance",12));finalSeriesseries=chart.createSeries();chart.addSeries(series.setName("Random speed").addPoint(80));finalTimertempTimer=newTimer(){@Overridepublicvoidrun(){longinc=Math.round((Random.nextDouble()-.5)*20);longcur=series.getPoints()[0].getY().longValue();series.getPoints()[0].update(cur+inc);}};tempTimer.scheduleRepeating(2000);returnchart;}
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
@Shawn before asking for a showcase I tried coding to myself, wrt example of Polar charts, but I have the same error when I add the series to the chart:
GWT Highcharts 1.6.0 supports the Gauge chart.
Is it possible have a showcase for this chart type?
Thanks
Last edit: b3t 2014-03-12
We do have a new showcase application coming with a bunch of new examples in it, including gauge's. Until that gets published, here's the gauge example source code in case it helps:
@Shawn before asking for a showcase I tried coding to myself, wrt example of Polar charts, but I have the same error when I add the series to the chart:
Highcharts Error #17: "The requested series type does not exist".
Last edit: b3t 2014-03-15
Resolved.
I forget to add the script tag for "highcharts-more.js" into the HTML file.
@Shawn thank you very much!
Last edit: b3t 2014-03-12