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

col_plot.js "d" transition update #4

Open
furuutsuponchisamurai opened this issue Jun 14, 2020 · 0 comments
Open

col_plot.js "d" transition update #4

furuutsuponchisamurai opened this issue Jun 14, 2020 · 0 comments

Comments

@furuutsuponchisamurai
Copy link

furuutsuponchisamurai commented Jun 14, 2020

On transition after clicking on "group_totals" to get the daily breakdown, if your data has a gap between days, e.g. no data for the 3rd to the 6th, your "d" attributes will be out of sync after that gap until after the nth column, n being the number of columns before transition (or on enter). E.g. The 4th column, day 6 will have a "d" value of 4, day 7 will have a "d" value of 5 etc until 13 where the new elements begin.

I added .attr('d', function(d) { return d.x; }); to the cols.transition() section to fix 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

1 participant