您可以使用pattern-fill
模块来区分图表上的某些点:
var data = [{
y: 2.5,
color: '#004512'
}, {
y: 9.5,
color: '#453813',
dataGroup: 1
}, ...];
data.forEach(function(el) {
if (el.dataGroup) {
el.color = {
pattern: {...}
}
}
});
实时演示: http://jsfiddle.net/BlackLabel/6m4e8x0y/4772/
文档: https://www.highcharts.com/blog/tutorials/pattern-fills/