Chart.js - Styling Legend

后端 未结 5 903
耶瑟儿~
耶瑟儿~ 2021-01-07 17:29

I\'m making a chart with chart.js and I\'m trying to figure out how I can change the label/legend styling. I want to remove the rectangle part and instead use a circle. I\'v

5条回答
  •  长情又很酷
    2021-01-07 17:41

    for angular4-chart.js you could use the options attribute like so:

    options = {
          legend:{
            display: true,
            labels: {
              usePointStyle: true,
            }
          }
    }
    

提交回复
热议问题