如何解决如何在Flot Char js中居中
我遇到了flot.js的问题,在我的图表中xaxis不在条形的中心,我尝试使用align:'center',但是它不起作用,我想要的是恰好在以下位置的xaxis(日期标签)图表 这是我的代码
$.plot('#grafik-presensi',[data],{
series: {
bars: {
show: true,barWidth: 0.6,align:'center',fill: true,fillColor: {
colors: [{
opacity: 0.9
},{
opacity: 0.9
}]
}
}
},colors: ['#25476a'],yaxis: {
},xaxis: {
ticks: ticks,},grid: {
hoverable: true,clickable: true,tickColor: '#eeeeee',borderWidth: 0
},legend: {
show: true,position: 'nw'
},tooltip: {
show: true,content: 'Presensi %x,Jumlah %y'
}
});
});
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。