Highcharts Getting Started small sample

Source: Internet
Author: User

First, create a bar chart

1. Create DIV container

  <div id="container" style="min-width:800px;height:400px"></div>

2. Write Chart Configuration Code

Related examples:

  <html>

    <head>

     <script type="text/javascript" src="http://cdn.hcharts.cn/jquery/jquery-1.8.3.min.js"></script>

    <ScriptType="Text/javascript"Src="Http://cdn.hcharts.cn/highcharts/highcharts.js" ></Script><Script>$(function () {$ (' #container '). Highcharts ({chart: {type:' Column '}, Title: {text:' My First highcharts chart '}, Xaxis: {categories: [' Apple ',' Banana ',' Oranges ']Specify X-Axis grouping}, YAxis: {title: {text:' Something '}, series: [{Specify the data column name:' Xiao Ming ',Data column Name: [1,0,4] //data}, {name:  ' Little Red ', data: [5, 7, 3]}]});   }); </script> </   head> <body> <div id= " Container "style=" min-width:800px;height:400px; " ></div> </ body> </HTML> 
effect after run:
Second, how to learn Highcharts

1. Prepare knowledge

      • Familiar with HTML, JQuery, Json, Ajax and other front-end knowledge
      • At least one background language, such as PHP, Java, ASP. NET, Nodejs, etc. (highcharts only do data presentation, the specific data source must be dynamic language)

2, a few suggestions

      • Learning anything is from the example of imitation, in their own practice mastered
      • Look at the API documentation provided by Api,highcharts is perfect, almost all the problems can be found in the API solution

Highcharts Getting Started small sample

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.