Php + highchats generate dynamic graph instance code

Source: Internet
Author: User

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>]

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.