Skip to content
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

Possible to start the line chart from left? #158

Open
GeoBrodas opened this issue Mar 6, 2022 · 3 comments
Open

Possible to start the line chart from left? #158

GeoBrodas opened this issue Mar 6, 2022 · 3 comments

Comments

@GeoBrodas
Copy link

GeoBrodas commented Mar 6, 2022

Had a doubt: If it's possible to start the line chart from the left instead of right (default behavior)?

And then start to reverse the x-axis when the line chart reaches the maximum across.

@Dovul
Copy link

Dovul commented Dec 19, 2022

Try to change in:

const config = {
  options: {
    scales: {
      x: {
      reverse: true,
      },
     ....
    },   
  }
};

To make it reverse, then try to make async call to change it back to reverse: false when the time will equal to ttl.

@nikhileshcr
Copy link

Hi,
Did you find any solution?

@GeoBrodas
Copy link
Author

Ah I dont have a code reference to show, but I remember what i did, I think I just assigned a negative value to the x-axis, something like that, don't quite remember now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants