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

Axis tick count not updating when calling chart.load(...) with new column data #2274

Open
lepolt opened this issue Jan 30, 2018 · 3 comments

Comments

@lepolt
Copy link

lepolt commented Jan 30, 2018

I have a chart generated with a set of data, but users will be able to ask for different bits of data and when that happens I am using load to load the new data. When this happens, there are certain cases where I need to update the number of ticks on the x-axis. Looking at the docs, I should be able to do this, but it doesn't seem to be working. I created a JSFiddle here (http://jsfiddle.net/lepolt/yhe7sg79/3/) that loads the initial data, then reloads new data and changes the tick count, but tick count is not reflected.

  • C3 version: 0.4.18
  • D3 version: 3.5.17
  • Browser: Chrome 63
  • OS: macOS 10.13
@lepolt
Copy link
Author

lepolt commented Apr 3, 2018

Still an issue with updated versions:
https://codepen.io/lepolt/pen/JLBbMP

C3: 0.5.2
D3: 4.13.0

@DmitryEfimenko
Copy link

Still an issue:
C3: 0.6.8

@bennettdams
Copy link

bennettdams commented Jul 24, 2019

There is a hack to bypass this problem: #1223 (comment)

You basically ignore the load functionality with changing the internal configuration directly, although this is not the right way to do it.

Also, I'm using Typescript with C3 so I had to add new types to my custom @types/c3 to be able to use this.

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