I'm trying to recreate an excel chart using Highcharts.
It's a scatter chart, with the dots for each series connected directly (not a trendline). This is the example from excel:
It has to be a scatter charts as the x-axis value are non-periodic (or logarithmic)
Any help gratefully appreciated!
A very helpful Highcharts service team member provided this answer: http://jsfiddle.net/sc5Gv/4/
$(function () {
$('#container').highcharts({
chart:{
type:'scatter'
},
plotOptions:{
scatter:{
lineWidth:2
}
},
series: [{
name: 'Tokyo',
data: [[1.5,7], [2.3,9], [4.2,5.6]]
}, {
name: 'New York',
data: [[0.8,9], [2.1,6.3], [5.0, 10.1]]
}]
});
});
What kind of problem did you come across, because its default chart
:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With