【发布时间】:2011-08-25 15:59:22
【问题描述】:
我正在使用 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>
【问题讨论】:
标签: javascript jquery html charts highcharts