samber / chartjs-plugin-datasource-prometheus

📊 Chart.js plugin for Prometheus
https://www.npmjs.com/package/chartjs-plugin-datasource-prometheus
MIT License
107 stars 20 forks source link

Is there a way to format the time stamps on the x-axis? #26

Closed dchappelle closed 1 year ago

dchappelle commented 1 year ago

Is there a way to customize the format of the time stamps displayed on the x-axis?

samber commented 1 year ago

Hi @dchappelle

Sure. You can use the momentjs library. See https://www.chartjs.org/docs/2.9.4/axes/cartesian/time.html