-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
trendline does not support time scale? #80
Comments
I think it's the same problem as the issue #79 that I'm working on. Thanks for the information and example. |
I have not tested time scale before. Please provide me with a example on codepen.io |
I am kind of busy at work but I hope this weekend I will create it. Thanks. |
Hi, I have a similar issue where I do not get any error, yet, the trend line does not appear. Here is my
I have edited the data (as it contains sensitive information) and I have removed other parts of the graph that has no bearing to what I want to achieve. The full graph looks something like this (made smaller to crop sensitive info). Please can you advise? I think it has to be with the dates in the X-axis labels, if I understand the issue correctly. |
Hi, thanks for the response - with an array with numerical indexes, it works, but because the data is tied to time, it is now distorted. There is not an even time between events I measure, so with a numerical array, I am losing the time range. If there is a way to perhaps use the numeric array for the trendline and the associative array for the actual graph, maybe that's a way forward? I am not sure how - but perhaps the trendline can be "scaled" after drawn with numerical data to be the total width of the X-axis after the fact? Not sure how feasible this is. I will appreciate your feedback once you have any. Thanks! |
@Makanz I created issue on https://codepen.io/Isa-Reinert/pen/poqgEEX |
@reinertisa I have made a fix and created a PR. Do you have time to try it out before I make a merge? |
@Makanz I tested PR and works pretty well. Thanks. |
Hi @Makanz I use chartjs library. I use trend line for linear scale. I do not see trendline for time scale and I got an this error.
'createLinearGradient' on 'CanvasRenderingContext2D': The provided double value is non-finite.
I use the same data for linear scale and time scale.
The text was updated successfully, but these errors were encountered: