[Chartjs]-Chart Js update legend boxes of graph with graph line style

2đź‘Ť

There’s a legend option called “usePointStyle” that should match the legend style to the style of the graph point.

legend: {
  labels: {
    usePointStyle: true
  }
}

If that doesn’t solve your issue, you may have to use the “legendCallback” to create a custom HTML legend.

Leave a comment