js中charts中怎么设置在柱状图上方显示对应的数值?
我在label中设置了显示,最后图形上方还是没有数据,求大神帮帮忙varM=$.plot($("#chongyapinfen"),[{data:L}],{series:{...
我在label中设置了显示,最后图形上方还是没有数据,求大神帮帮忙
var M = $.plot($("#chongyapinfen"), [{
data: L
}], {
series: {
bars: {
show: true,
lineWidth: 20,
fill: false,
label: {
normal: {
show: true,
position: 'top',
textStyle: {
color: 'red'
}
}
},
},
points: {
show: true,
lineWidth: 3,
fill: true,
fillColor: "#fff"
},
shadowSize: 0
},
grid: {
hoverable: true,
clickable: true,
tickColor: "#aaa",
borderColor: false
},
colors: ["blue"],
xaxis: {
mode: "time",
tickFormatter: function (Q, P) {
return i[new Date(Q).getDay()];
},
color: "#222",
autoscaleMargin: 1e-18
},
yaxis: {
ticks: 4,
tickDecimals: 0,
color: "#222"
}
}); 展开
var M = $.plot($("#chongyapinfen"), [{
data: L
}], {
series: {
bars: {
show: true,
lineWidth: 20,
fill: false,
label: {
normal: {
show: true,
position: 'top',
textStyle: {
color: 'red'
}
}
},
},
points: {
show: true,
lineWidth: 3,
fill: true,
fillColor: "#fff"
},
shadowSize: 0
},
grid: {
hoverable: true,
clickable: true,
tickColor: "#aaa",
borderColor: false
},
colors: ["blue"],
xaxis: {
mode: "time",
tickFormatter: function (Q, P) {
return i[new Date(Q).getDay()];
},
color: "#222",
autoscaleMargin: 1e-18
},
yaxis: {
ticks: 4,
tickDecimals: 0,
color: "#222"
}
}); 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询