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

BarChart error when there are many data and small width container #1586

Open
akkivaghasiya5 opened this issue Sep 15, 2023 · 1 comment
Open
Labels
bug Something isn't working

Comments

@akkivaghasiya5
Copy link

Bug summary

Let's say if there are 365 DataPoint and the width of the parent container div is 450px. Then the graph is not being loaded with error attribute width: A negative value is not valid. ("-0.03536031420765029"). (SS)

Expected behavior

If it is the width of bar, mathematically, it can never be negative. So, there might be some mathematical error.
There should be an option for min bar width. If the calculated bar width is less than min bar width, there should be scroll/overflow.

Actual behavior

Currently, graph is being blank as shown in SS with below error message.

rect attribute width: A negative value is not valid. ("-0.03536031420765029")

Specifications

  System:
    OS: macOS 13.5
    CPU: (8) arm64 Apple M2
    Memory: 51.11 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 16.20.1 - ~/.nvm/versions/node/v16.20.1/bin/node
    npm: 8.19.4 - ~/.nvm/versions/node/v16.20.1/bin/npm
  Browsers:
    Chrome: 116.0.5845.187
    Safari: 16.6
  npmPackages:
    @shopify/polaris-viz: ^9.10.6 => 9.10.6 
    react: ^16.14.0 => 16.14.0 
    react-dom: ^16.9.0 => 16.14.0 
@akkivaghasiya5 akkivaghasiya5 added the bug Something isn't working label Sep 15, 2023
@SomeBrujah
Copy link

Have the same problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants