Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

Highcharts Gauge Chart

Highcharts Gauge Chart

Highcharts Gauge ChartHighcharts Gauge Chart

The following example demonstrates a gauge chart.

We learned the basic Highcharts configuration syntax in the previous chapters. Now let's look at some other configurations.


Configure

chart.type Configuration

Set the type of chart to 'gauge'. chart.type describes the chart type. The default value is "line".



var chart = {

   type: 'guage'

};

pane Configuration

pane only applies to polar charts and angular gauges. This configurable object holds the general options for combining the X and Y axes. Each X and Y axis can be associated with a pane by index.



var pane = {

  startAngle: -150,  // x轴或测量轴的开始度数,以度数的方式给出。0是北

  endAngle: 150      //x轴极坐标或角度轴的最终度数,以度数的方式给出。0是北

};

Example

Filename: highcharts_guage_angular.htm









Highcharts 教程 | Runoob Tutorial(runoob.com)





    





The output of the above example is:

Highcharts Gauge ChartHighcharts Gauge Chart