angular chartjs align legend left
// HTML // TS doughnutChartOptions = { legend: { display: true, position: 'left', } }
Here is what the above code is Doing:
1. We are using the baseChart
directive to create a chart.
2. We are passing the data, labels, chart type and options to the chart.
3. We are setting the legend position to left.
Here’s the output:
You can find more options here.