0👍
I’m not gonna try to write down the whole process because somebody else already did it https://dev.to/wiaio/implementing-a-chartjs-line-chart-in-your-angular-application-19d7
0👍
This is a line chart. Your data is an array with values like [10000, 8000, 5000, 0]
for your y-axis and your labels are in an array with values like [0, 15, 35, 60]
, representing the values for your x-axis with the y-axis-values.
For the Rs.
you need label-callbacks, and you need special ticks and stepSizes for your scales to display all ticks like you want them.
I think you can find all information you need with googling the names I gave you. If you have more questions, ask them here. But be more specific, a simple “Do this for me” won’t work here.
- Chartjs-Async showing data in pieChart from chart.js with typescript
- Chartjs-Not all date data shows on x axis line chart
Source:stackexchange.com