2
我的点没有出现在中心与x轴的网格线在下面的屏幕截图为可见:jQuery的Flot.js:折线图表点不与x轴网格线为中心
是我使用的选项如下:
var options = {
grid: {
show: true,
aboveData: false,
color: "#3f3f3f",
labelMargin: 10,
axisMargin: 0,
borderWidth: 0,
borderColor: null,
minBorderMargin: 5,
clickable: true,
hoverable: true,
autoHighlight: true,
mouseActiveRadius: 100
},
series: {
lines: {
show: true,
fill: true,
lineWidth: 2,
steps: false
},
points: {
show: true,
radius: 4.5,
symbol: "circle",
lineWidth: 3.0
}
},
legend: {
position: "ne",
margin: [0, -15],
noColumns: 0,
labelBoxBorderColor: null,
labelFormatter: function(label, series) {
// just add some space to labes
return label + ' ';
},
width: 40,
height: 1
},
colors: chartColours,
shadowSize: 0,
tooltip: true, //activate tooltip
tooltipOpts: {
content: "%s: %y.0",
xDateFormat: "%d/%m",
shifts: {
x: -30,
y: -50
},
defaultTheme: false
},
yaxis: {
min: 0,
tickDecimals:0
},
xaxis: {
mode: "time",
minTickSize: tickSize,
timeformat: tformat,
min: chartMinDate,
max: chartMaxDate
}
};
我的数据集是一个时间序列,以及标签值也从相同的数据集,因此日期应排队与未来点。然而,它被抵消,而没有选择这个存在。我究竟做错了什么?
你找到这个问题的解决? –
我没有。我可能很快会再次看到这样的内容,如果我找到解决方案,我会在这里发布。 – AliIshaq