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

Wrong axis range after append data by flow() #2815

Open
adash-dev opened this issue Sep 17, 2020 · 0 comments
Open

Wrong axis range after append data by flow() #2815

adash-dev opened this issue Sep 17, 2020 · 0 comments

Comments

@adash-dev
Copy link

I already have data displayed in the graph (high Y values). Using flow() to reads new (much lower) values and old high values are discarded because the length parameter is used.
The X and Y axis range is set incorrectly. Only when I zoom in with the mouse wheel or resize the browser window does the axis ranges be adjusted.

Is this a issue? Is there any way to force recalculated axis ranges?

C3 version: 0.7.2
D3 version: 5.16.0
Browser: Chrome
OS: Windows 10

Update data:

this.$chart.flow({
   x: 'x',
   xFormat: '%Y-%m-%d %H:%M:%S.%L',
   columns: [
      dataX,
      dataY
   ],
   length: cropLen,
})
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

1 participant