[英]Highcharts - Scatter chart with a line connecting the dots in the series
I'm trying to recreate an excel chart using Highcharts. 我正在尝试使用Highcharts重新创建一个excel图表。
It's a scatter chart, with the dots for each series connected directly (not a trendline). 这是一个散点图,每个系列的点都直接连接(不是趋势线)。 This is the example from excel:
这是excel的例子:
It has to be a scatter charts as the x-axis value are non-periodic (or logarithmic) 它必须是散点图,因为x轴值是非周期性的(或对数)
Any help gratefully appreciated! 任何帮助感激不尽!
A very helpful Highcharts service team member provided this answer: http://jsfiddle.net/sc5Gv/4/ 一个非常有用的Highcharts服务团队成员提供了这个答案: 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
: 你遇到了什么样的问题,因为它的默认
chart
:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.