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

Highcharts Bubble Chart

Highcharts Bubble Chart

In this chapter we will introduce Highcharts bubble charts.

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


Configure

chart Configuration

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

The chart.zoomType property configures chart zooming. Zoom by dragging the mouse, along the X or Y axis, and can be set to: 'x', 'y', 'xy'.



var chart = {

   type: 'bubble',

   zoomType: 'xy'

};

Example

Filename: highcharts_bubble_basic.htm









Highcharts 教程 | Runoob Tutorial(runoob.com)











The output of the above example is:


3D Bubble Chart

series.marker

Set a gradient on series.marker to give it a 3D look.



marker: {

   fillColor: {

      radialGradient: { cx: 0.4, cy: 0.3, r: 0.7 },

      stops: [

         [0, 'rgba(255,255,255,0.5)'],

         [1, Highcharts.Color(Highcharts.getOptions().colors[0]).setOpacity(0.5).get('rgba')]

      ]

   }

}

Example

Filename: highcharts_bubble_3d.htm







Highcharts 教程 | Runoob Tutorial(runoob.com)

   

   

   





The output of the above example is: