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

Using same scale changes widths of bars #3426

Open
timwis opened this issue Dec 5, 2017 · 0 comments
Open

Using same scale changes widths of bars #3426

timwis opened this issue Dec 5, 2017 · 0 comments

Comments

@timwis
Copy link

timwis commented Dec 5, 2017

Bug report

Live example URL: https://www.webpackbin.com/bins/-L-ZL4OfbxdRJslccl6J

Steps to repro:

  1. Create a basic bar plot
  2. Add a rectangle chart that uses the same xScale as the bar plot
  3. Render them as a group

In the live example URL, swap the commented line for the one before it to see it demonstrated.

Expected behavior

Dataset is added to the chart

Actual behavior

The width of the bars in the bar plot change. The only clues I have to what's causing it are that xScale.innerPadding() changes from 0.4 to 0. Any idea why?

  • Plottable version: 3.7.0
  • Browser name/version: Chrome
  • OS name/version: macOS 10.13

For now, a workaround is to manually set xScale.innerPadding(0.4). Hacky but does the job until we hear back on this issue.

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