是否可以在flot图中显示x和y轴的标题?Flot图中x和y轴的标题
以下是代码:
$.plot($("#placeholder_1w"), [d], {
series: {
lines: { show: true, fill: false, fillColor: "red" },
points: { show: true, fill: true,fillColor: "red" }
},
grid: { hoverable: true, clickable: true , color: 'green'},
xaxis: {
mode: "time",
minTickSize: [1, "day"],
min: (myWeekDate).getTime(),
max: (new Date()).getTime()
},
colors: ["red", "green", "#919733"]
});
除了@ Ryley的回答,还有一个插件可用:https://github.com/markrcote/flot-axislabels – Mark
@Mark - 作出答案,我会投它:) – Ryley