String Handling in Highcharts (2)

Source: Internet
Author: User
String Handling in Highcharts (2)
If the same name,highcharts appear in the data node, they will not be considered the same, and are processed according to different ticks.
"Instance 2-7:strdata1" builds a chart with the same node name. The core code is as follows:
  • Series: [{
  • Data: [
  • [' First time ', 92],///Same node name
  • [' Second time ', 85],
  • [' Third time ', 89],
  • [' Fourth time ', 97],
  • [' Fifth time ', 91],
  • [' First time ', 93]///Same node name
  • ],
  • keys:[' name ', ' Y ']
  • }],
  • Xaxis: [{
  • Type: ' Category ',
  • }],
Specify the code, as shown in effect 2.8. As you can see, the "first" scale appears two times on the x-axis. In many charts, such data nodes are unavoidable. This time, the node name and node data need to be separated, that is, the following to explain the content.

With the same node name

PS: This content has been added to the "Web Diagram highcharts Practical tutorial Basic article" v1.2.5.

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

String Handling in Highcharts (2)

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.