nagix / chartjs-plugin-streaming

Chart.js plugin for live streaming data
MIT License
515 stars 130 forks source link

I want to set the minimum and maximum values of the x-axis to the server time. Is there a way? #151

Open JangCool opened 2 years ago

JangCool commented 2 years ago

I think, the local function Date.now() is used to set the x-axis time range. Is that right?

I want to set the minimum and maximum values of the x-axis to the server time. Is there a way?

@nagix I need your help.

image

dorianbayart commented 1 year ago

Setting the x-axis time range to match server time seems to be impossible as of today.

As a solution, I shifted the time of my data to fit the client's local time. The downside of this solution is that the x-axis doesn't represent the actual server time.