Chartjs-How to filter chart.js with datepicker?

1👍

first of all, you’re trying to filter your data from the API by sending fromDate and toDate parameters.
I reached https://gmlews.com/api/data/?node_id=1 but didn’t find the documentation on parameters which can be used.

If i try a GET with &fromDate=2020-05-29&toDate=2020-05-29 i receive the same data as if i call the endpoint without parameter.
Same in POST.

Shouldn’t you send a timestamp instead a date format ?

Is your formatted date in YYYY-MM-DD format ?

Leave a comment