You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello everybody, I try to adapt a simple chartjs code in order to modify time display according to values from a select field OR input field into my html page (I try both). The fact is I don't understand why the values selected is not linked to the graph variable. The select field seems to work correctly. I test with an alert message and it shows me the good value. If I fix the time value, graph display works correctly. But when I change the time value to a variable link to the select field that become wrong... graph display 'Failed to fetch data'.
In the following code, I try to use input data named "startval", pass the value into the const "startInput", in order to use it in the timeRange section. I didn't succeed doing this job... but when I change the start value into the timeRange section, as for example : -1000, it works perfectly.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello everybody, I try to adapt a simple chartjs code in order to modify time display according to values from a select field OR input field into my html page (I try both). The fact is I don't understand why the values selected is not linked to the graph variable. The select field seems to work correctly. I test with an alert message and it shows me the good value. If I fix the time value, graph display works correctly. But when I change the time value to a variable link to the select field that become wrong... graph display 'Failed to fetch data'.
In the following code, I try to use input data named "startval", pass the value into the const "startInput", in order to use it in the timeRange section. I didn't succeed doing this job... but when I change the start value into the timeRange section, as for example : -1000, it works perfectly.
Here is the code
`
`
Thank you so much for help.
Beta Was this translation helpful? Give feedback.
All reactions