Search code examples
labelchart.jslegendpie-chartstyling

Pie chart legend styling using Chart js


How to style legend type from rectangle box to circle? pie chart using chartjs.orgenter image description here


Solution

  • You could accomplish so, by setting usePointStyle property to true for legend labels in your chart options, like this ...

    options: {
       legend: {
          labels: {
             usePointStyle: true  //<-- set this
          }
       },
       ...
    }