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

[Bug Report][3.5.17] VSparkline - Width of sparkline reduces as more data is added #19692

Open
joepavitt opened this issue Apr 25, 2024 · 1 comment

Comments

@joepavitt
Copy link

Environment

Vuetify Version: 3.5.17
Vue Version: 3.4.21
Browsers: Chrome 123.0.0.0
OS: Mac OS 10.15.7

Steps to reproduce

Click the "Add Data" button multiple times

Expected Behavior

The width of the chart should be consistent, independent of the number of data points included.

it seems only to occur when data is added to the chart after the first render, rather than loading lots of data points in the first place

Actual Behavior

The more data points added to the chart, the narrower the sparkline chart renders

Reproduction Link

https://play.vuetifyjs.com/#...

@joepavitt
Copy link
Author

joepavitt commented Apr 25, 2024

It does seem to be linked to the dash offset value on the path:

Screen.Recording.2024-04-25.at.11.31.02.mov

Removing the dasharray in the CSS dev tools fixes the issue:

Screenshot 2024-04-25 at 11 31 52

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant