Highcharts.chart('container', {
title: {
text: 'Lines'
},
series: [{
name: 'Line A',
data: [{x: 1, y: 0}, {x: 1,y: 5}],
}, {
name: 'Line B',
data: [{x: 3,y: 0}, {x: 3,y: 5}]
},
{
name: 'Some line',
data: [{x: 0,y: 2}, {x: 5,y: 2}]
}
]
});
示例-https://jsfiddle.net/bzguv643/