Highcharts in use for more than 11 bugs in a series

Source: Internet
Author: User

JS script:

$ (function () {$ (' #container '). Highcharts ({chart: {type: ' column '}, Title: { Text: ' Stacked column chart '}, Xaxis: {categories: [' Apples ', ' oranges ', ' Pears ', ' grapes ' , ' Bananas '}, YAxis: {min:0, title: {text: ' Total fruit consumptio N '}, Stacklabels: {enabled:true, style: {Fontwe ight: ' Bold ', Color: (highcharts.theme && Highcharts.theme.textColor) | | ' Gray '}}, tooltip: {formatter:function () {return            ' + this.series.name + ': ' + this.y + ' (' + math.round (this.percentage) + '%) ';                    }}, Plotoptions: {column: {stacking: ' normal ', DataLabels: { Enabled:true, Color: (HigHcharts.theme && Highcharts.theme.dataLabelsColor) | | ' White '}}, series: [{name: ' John ', data: [5, 3, 4, 7, 2 ]}, {name: ' Jane ', data: [2, 2, 3, 2, 1]}, {name: ' Joe ', dat A: [3, 4, 4, 2, 5]}, {name: ' Joe ', Data: [3, 4, 4, 2, 5]}, {name: ' Joe '            , Data: [3, 4, 4, 2, 5]}, {name: ' Joe ', Data: [3, 4, 4, 2, 5]}, {        Name: ' Joe ', Data: [3, 4, 4, 2, 5]}, {name: ' Joe ', Data: [3, 4, 4, 2, 5] }, {name: ' Joe ', Data: [3, 4, 4, 2, 5]}, {name: ' Joe ', Data: [3 , 4, 4, 2, 5]}, {name: ' Jack ',///lower corner marked with data: [8, 4, 4, 2, 5]},{name: ' Not 11 ah ', data:[]}, {name: ' Nancy ',//lower corner labeledData: [7, 4, 4, 2, 5]},{name: ' Not 13 ah ',//should be 13 data:[]}, {    Name: ' Kog ',//The lower corner is labeled as data: [5, 4, 4, 2, 5]},{},{}]});     var chart = $ (' #container '). Highcharts ();     Chart.series[10].remove ();     Chart.series[11].remove ();    Chart.series[12].remove (); Chart.series[13].remove ();});


HTML page data:


The last picture shown:



It is easy to see a bug when the series is over 11, and the series API call is wrong. I use HIGHCHARTS4, do not know when the official can be changed!!




Highcharts in use for more than 11 bugs in a series

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.