How to create rounded bars for Bar Chart.js v2?

后端 未结 5 1332
花落未央
花落未央 2020-12-01 11:33

Trying to round the bars on bar chart as found in this post that works as displayed in the jsFiddle provided. This is for version 1.

In the chart that I am using, i

5条回答
  •  温柔的废话
    2020-12-01 11:52

    Checkout chartjs-top-round-bar a usefull

    You just need to

    import 'chartjs-top-round-bar';
    

    ...

    new Chart('myChart', 
    { 
        options: { 
            barRoundness: 0.3
        }
    }
    

提交回复
热议问题