2
我使用Highcharts创建图表:Highcharts缩放图形问题
http://dev.speechlink.co.uk/David/sixthiteration/home.php
然而,当缩放,似乎砍图表关闭右侧的一部分......我不完全确定为什么..?
这里是我的代码:
的jQuery:
chart = new Highcharts.Chart({
chart: {
renderTo: 'summarycontainer',
},
credits: {
enabled: false
},
exporting: {
enabled: false
},
title: {
text: 'No. Entries Submitted This Month',
style: {
fontSize: 10
}
},
xAxis: {
lineWidth: 1,
lineColor: '#999999',
title: {
text: 'x-axis'
}
},
yAxis: {
title: {
text: 'y-axis'
},
labels: {
y: 2
},
lineWidth: 1,
lineColor: '#999999',
gridLineWidth: 1,
gridLineColor: '#eaeaea',
startOnTick: false,
showFirstLabel: false
},
tooltip: {
shared: true
},
legend: {
enabled: false
},
plotOptions: {
},
series: [{
type: 'scatter',
name: '',
data: [10, 20, 10, 20, 2, 3, 1, 9],
lineColor: '#f6a828',
color: '#418ed6'
}],
});
});
而在我的HTML,我有一个div容器:
<div id = "summarycontainer" style="width: 250px; height: 250px"></div>
嗨感谢你答复。所以我添加了你的建议,它确实阻止了最后一个关闭点的图形,但它为前两个点留下了我的工具提示?关于页面源代码,我搞乱了代码 - 这不是错误。 – user906568
编辑答案:) –