Highcharts:x Axis Group Stacking diagram

Source: Internet
Author: User

When you design a data presentation page in a project. To design a double x-axis, an axis displays the required items. The items are grouped by an axis. Effect


    • Highcharts comes with dual x-axis display mode. But the effect is not too ideal. It'll be a little tricky to adjust.
    • See there is a grouping plugin on the highcharts. Grouped-categories.js. You can achieve the desired effect with a little change, such as the following code:
$ (function () {var chart = new Highcharts.chart ({chart: {renderto: "container", type: " Column "}, Title: {text:null},plotoptions: {column: {Stacki ng: ' Normal ', DataLabels: {enabled:false, color: (highcharts.theme && Highcharts.theme.dataLabelsColor) | | ' White '}}, series: [{name: ' new ', Color: ' #F F3300 ', type: ' column ', Data: [4, +, 5, 6, 5, +,--]},{NA Me: ' Follow ', color: ' #009900 ', type: ' column ', Data: [4, 14, 18, 5, 6                        , 5, +, +]}, {name: ' Prepared ', color: ' #FFFF33 ', Type: ' column ', Data: [4, +, 5, 6, 5, +, +]}], Xaxis: {categories: [{Name: "2011", Categories: ["One", "two", "Three"]}, {                Name: "2012", Categories: ["One", "two", "Three"]}, {name: "2013", Categories: ["One", "two", "Three"]}]}});

This address: http://blog.csdn.net/yueritian/article/details/41309137

Highcharts:x Axis Group Stacking diagram

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.