Mub*_*liq 4 javascript jquery svg highcharts
我有一个散点图和条形图.我无法查看超过bar的散点的工具提示......这里是小提琴http://jsfiddle.net/tZ9Rt/
我正在使用这两个系列:
series: [{
type: 'scatter',
index:2,
data: [29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4],
name: 'Temperature'
}, {
type: 'column',
index:1,
data: [220,220,220,220,120,220,220,220,220,220,220,220],
name: 'Rainfall'
}]
Run Code Online (Sandbox Code Playgroud)
任何帮助都非常感谢...
谢谢
Joh*_*nck 10
让你的tooltip分享,以及一系列改变type来'line'和lineWidth到0.那么你将有一个看起来像散点图的"线"图表,但工具提示有效!
tooltip: {
shared: true //make the tooltip accessible across all series
},
plotOptions: {
line: {
lineWidth: 0 //make the lines disappear
}
},
series: [{
type: 'column',
name: 'Column Data',
data: [5, 4, 3, 2, 1, 0]
}, {
type: 'line', //this is a 'fake' scatter plot
name: 'Pseudo-scatter',
data: [0, 1, 2, 3, 4, 5]
}]
Run Code Online (Sandbox Code Playgroud)