为什么我的y轴放错了地方,如何解决?我无法理解为什么'y'轴位于图表的顶部.任何想法都赞赏.

这些是我正在使用的选项.我已经尝试抓住生成的y轴类并手动使用css将其向左破解几个像素,但整个图形只是移位.据我所知,API中没有任何东西可以相对于图形移动y轴自动收报机标签.
var options = {
colors: ["#99CCFF", "#000099", "#FF6C47"],
series: {
lines: {show: true, highlightColor:'#000099'},
points: {show: true}
},
xaxis: {
mode: "time",
timeformat: "%d/%m",
markings: [{color: "#000"}],
},
yaxis: {
markings: [{color: "#000"}]
},
grid: {
markings: [{color: "#fff"}],
labelMargin: 10,
axisMargin: 10,
backgroundColor: {
colors: [ "#000099", "#29A3CC" ]
},
borderWidth: {
top: 1,
right: 1,
bottom: 2,
left: 2
}
},
legend: {
show: true,
backgroundOpacity:.5,
labelBoxBorderColor: 1,
position: "nw",
margin: 5
}
};
$.plot("#bpTable", [
{label: "systolic", data: c1},
{label: "diastolic", data: c2}
],
options);
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
5415 次 |
| 最近记录: |