0👍
We can try to use the SqlDependency’s OnChange event to detect the database updated and use SignalR to update the Chartjs graph.
You can check thread first, and we can change the commandText
as we needed. If the data changed, you can query the database views.
And for front end, we can check this official doc to update the graph.
- Chartjs-Angularjs lazy load chartjs when in another tab
- Chartjs-Chart js legend are being cut off if the bar height is equal to port height – chart js
Source:stackexchange.com