Replies: 1 comment 4 replies
-
@DrKlipper the problem is related to the X scale. You are not setting the const options = {
scales: {
x: {
type: "time"
}
}
}; See codepen: https://codepen.io/stockinail/pen/LYvQGOV |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi !
I need to plot some X/Y Data in a chart. I have multiple series of data and this is my sample:
When I run this demo I got this strange output:
![grafik](https://private-user-images.githubusercontent.com/119651689/319649554-9efc1062-4ef5-4d76-aac7-1d38362b3a13.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjAxODUyNDQsIm5iZiI6MTcyMDE4NDk0NCwicGF0aCI6Ii8xMTk2NTE2ODkvMzE5NjQ5NTU0LTllZmMxMDYyLTRlZjUtNGQ3Ni1hYWM3LTFkMzgzNjJiM2ExMy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzA1JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcwNVQxMzA5MDRaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1hMDdiM2RhYTAzY2FkODBhOThkM2I3OWYyODM1ZjU2OTZiZGQzZDQ3NjMyNmRkZmVmYzlkZDE4OTZlOWZlYzgyJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.N0m31N5aZ1UUVp5wCZhpOS0Oza3jI-9b8yZ3HjBfVzg)
Can anyone help me out and show me a correct plotting?
What I need is a automatic scaling of the X axis. It should use the Min / Max datetime values from the data.
Is this even possible?
Any help would be much appreciated !
Dominik
Beta Was this translation helpful? Give feedback.
All reactions