Show values on top of bars in chart.js

后端 未结 7 1132
自闭症患者
自闭症患者 2020-12-04 13:34

Please refer this Fiddle : https://jsfiddle.net/4mxhogmd/1/

I am working on chart.js If you see in fiddle, you will notice that value which is top on bar is not pro

7条回答
  •  星月不相逢
    2020-12-04 14:03

    You can use add some padding-top inside your chart options

    layout: {
        padding: {
            left: 0,
            right: 0,
            top: 30,
            bottom: 0
        }
     },
    

提交回复
热议问题