Let's share the php + highchats method for generating dynamic statistical charts.
Example:
series: [{ type: 'pie', name: 'Browser share', data: [ ['Firefox', 45.0], ['IE', 26.8], { name: 'Chrome', y: 12.8, sliced: true, selected: true }, ['Safari', 8.5], ['Opera', 6.2], ['Others', 0.7] ] }]
Mainly refer to this section:
{ name: 'Chrome', y: 12.8, sliced: true, selected: true }Articles you may be interested in:
- Highcharts tutorial (22) bar chart example
- Highcharts tutorial (21) bar legend child
- Highcharts tutorial (20) graph Example 2
- Highcharts tutorial (19) graph Example 1
- Highcharts tutorial (18) xAxis X axis style 2
- Highcharts tutorial (17) xAxis X axis style 1
- Highcharts tutorial (16) tooltip
- Highcharts tutorial (15) title and subtitle
- Highcharts tutorial (14) Series data column options
- Highcharts tutorial (13) Pie Chart and other graphics
- Highcharts tutorial (12) gauge measurement chart
- Highcharts tutorial (11) bar chart, Column chart, and Columnrange Column chart
- Highcharts tutorial (10) arearange Area Layout chart VSareaspline area curve chart VSareasplinerangeVSbar bar chart
- Highcharts tutorial (9) area map of PlotOptions
- Highcharts tutorial (8) Overview of Pane options and PlotOptions drawing options
- Highcharts tutorial (7) loading options and navigation options
- Highcharts tutorial (6) legend options
- Highcharts tutorial (5) Lang language options
- Highcharts tutorial (4) global Options and labels label options
- Highcharts tutorial (3) exporting export and Print Options
- Highcharts tutorial (2) colors color and credits business card options
- Highcharts tutorial (1) chart options
Code:
<! Doctype html>
Output:
{"2": {"name": "lo", "data": [0, 0]}, "3": {"name": "eth0", "data ": [0.40377, 0.00353]}
Js call:
series: [ <span>] <span style="white-space:pre"> </span>]