Я хочу показать график между областью оси X (от a до c).Я попробовал следующее, но все же сюжетная полоса не обнаруживается.
https://jsfiddle.net/pavanskipo/nsoaveph/7/
Ниже приведен пример кода TS:
Highcharts.chart('container', {
chart: {
type: 'column'
},
xAxis: {
plotBands: [{
to: 'a',
color: "#FFAAAA",
from: 'c'
}],
categories: ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m"],
crosshair: true
},
yAxis: {
min: 0,
},
tooltip: {
headerFormat: '<span style="font-size:10px">{point.key}</span><table>',
pointFormat: '<tr><td style="color:{series.color};padding:0">{series.name}: </td>' +
'<td style="padding:0"><b>{point.y:.1f} mm</b></td></tr>',
footerFormat: '</table>',
shared: true,
useHTML: true
},
plotOptions: {
column: {
pointPadding: 0.2,
borderWidth: 0
}
},
series: [{
"color": "#8085e9",
"data": [null, 1, 1, 2, 2, 2, 2, 3, 1, 1, 1, 1, 1],
"name": "Linux"
}, {
"color": "#f15c80",
"data": [1, 2, 1, 1, 1, 1, 1, 2, 1, 1, 1, null, null],
"name": "Others"
}]
});