flot柱状图上显示数字

来源:互联网 发布:数据分析有发展前途 编辑:程序博客网 时间:2024/04/27 04:25
使用flot的插件jquery_flot_barnumbers.js,
bars: {
            show: true,
            fill: 0.8,
            align: "center",
            barWidth: 1,
            lineWidth: 0,
            numbers: {
show : boolean,            xAlign : null or function like function (x) {return x + 0.5;}, (if null, the text is in the middle,偏移x)            yAlign : null or function like function (y) {return y + 0.5;}, (if null, the text is in the middle,偏移y)            font : {size : number, style : string, weight : string, family : string, color : string},            rotate : number (倾斜度)

            }
        },

参考

http://stackoverflow.com/questions/18523714/flot-how-to-style-numbers-within-bar-charts

http://stackoverflow.com/questions/27353941/jquery-flot-bar-numbers-numbers-positioning

https://github.com/joetsoi/flot-barnumbers/

0 0
原创粉丝点击