How to have solid colored bars in angular-chart bar chart

后端 未结 4 546
南旧
南旧 2020-12-20 22:34

I\'m using angular-chart (based on chart.js) to create some bar charts and am having trouble getting the bar styling I want. I want the bars to be solid colors like this:

4条回答
  •  再見小時候
    2020-12-20 22:45

    Just use RGBA where A is Opacity and set it to 1 which defines the solid color. Ex: backgroundColor: [ 'rgba(255, 99, 132, 1)']

提交回复
热议问题