I need to draw chart like this:
https://codepen.io/4zhar12/pen/poOJvQb?editors=0010
If i set min max/value it does not work correct, you can watch example on codepen.
Please, can you exmplain me how can i draw the chart ?
Code: Select all
Highcharts.chart('container', {
chart: {
type: 'column'
},
title: {
text: 'Column chart with negative values'
},
xAxis: {
categories: ['Apples', 'Oranges', 'Pears', 'Grapes', 'Bananas']
},
// it does not work
// yAxis:[{
// min:30
// }],
credits: {
enabled: false
},
series: [{
name: 'John',
data: [50, 30, 40, 70, 20]
}, {
name: 'Jane',
data: [20, -20, -30, 20, 10]
}, {
name: 'Joe',
data: [30, 40, 40, -20, 50]
}]
});