Highcharts build the Group category coordinate axis and highcharts coordinate axis

Source: Internet
Author: User

Highcharts build the Group category coordinate axis and highcharts coordinate axis
Highcharts
The Group category coordinate axis further groups the category tags of the coordinate axes to form a dual-layer and multi-layer structure. This is more conducive to the presentation of data groups. To implement the Group category axis, you must use the third-party plug-in Grouped-Categories. After this plug-in is introduced, you can use categories to build group classification labels. The syntax format is as follows:

  • Categories :[{
  • Name: String,
  • Categories: CategoriesObject
  • }]

The String parameter specifies the group name, which is displayed as a tag on the axis. The CategoriesObject parameter specifies the sub-group form. It can be another group classification object or a type data.

After the group is set, you can also set a style for each level label separately. In this case, you need to use the groupedOptions configuration item added by the plug-in. The syntax format is as follows:

  • Labels :{
  • GroupedOptions :[{
  • // Various labels configuration items at the first layer
  • },{
  • // Various labels configuration items on Layer 2
  • },{
  • // Various labels configuration items on Layer 3
  • }]
  • }

The effect is as follows:


Group category axis
PS: This content has been added to webpage chart Highcharts practice tutorial basics v1.2.3.

Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.

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.