是否可以将值标签在酒吧,使他们站在集中在他们?
如果我设置酒吧align: "center"
,在酒吧标签是关闭的,而不是居中。
<script type="text/javascript">
$(function() {
var data = [<?php echo $data; ?>];
$.plot("#<?php echo $target; ?> .chart-placeholder", data, {
series: {
color: "rgb(57,137,209)",
bars: {
show: true,
// align: "center",
barWidth: .8,
fill: 1
},
valueLabels: {
show: true,
showAsHtml: true,
align: "center"
}
},
grid: {
aboveData: true,
hoverable: true,
borderWidth: 0
},
xaxis: {
mode: "categories",
tickLength: 0,
labelAngle: -45,
showAsHtml: true
},
yaxis: {
show: false,
tickLength: 0
},
});
});
</script>
美丽
海军报值标签插件
的jsfiddle