I'm working on HighTers, just got a problem when there are some data about the problem The chart then shows 0 on it, which appears in the JSField checkout given below, as the labels on the chart are settled by the following function, but I am not able to check it only to display those bars Whose value is zero Chart is above
[Check Sepp section in the chart]
$ (function () {var chart; $ (document) .ready (function () { Chart = new highchart chart ({chartereTo: 'container', type: 'column'}, title: {text: 'stacked column chart}}, xAxis: {categories: [' apples', 'oranges' 'Pears', 'grapes', 'banana']}, yAxis: {min: 0, title: {text: 'total fruit consumption}', stack label: {enable: true, style: {fontWeight: 'bold', Color: (Highchart. Theme & amp; amp; highcharts.theme.text collar) '' blue '}}}, Legend: {align:' right ', X: -100, vertical alliance:' top ', Y: 20 , Flow Ing: true, background color: (Haichartskthym & amp; Highchart theme.legendBackgroundColorSolid) || 'Gray', border color: '# ccc', border width: 1, shadow: wrong}, tooltip: {formatter: function () {return '& lt; B & gt; + This.x + '& lt; / B & gt; & Lt; Br / & gt; '+ This.series.name +': '+ this.y +' & lt; Br / & gt; '+' Total: '+ this.point.stackTotal; }}, Plot Options: {Column: {Stacking: 'General', Data Labels: {Enabled: True, Color: (Highcharges. Hem & High Chart. Themed Data Labels Collar) || 'Jane', data: [2, 2, 3, 2, 2, 3, 4, 7, 2]}, [name: 'John', data: [0, 3, 4, 7, 2]}, 1 ]}, {Name: 'joe', data: [3, 4, 4, 2, 5]}]}); }); });
This is how I have dealt with this situation.
When you are making your data point, instead of entering 0, put a blank.
For example, your data will look like:
<0> instead of [0,3 , 4,7,2]
Comments
Post a Comment