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

Can't modify stroke width of multi-series sparkline chart #4216

Closed
lmansur opened this issue Feb 7, 2024 · 0 comments · Fixed by #4410
Closed

Can't modify stroke width of multi-series sparkline chart #4216

lmansur opened this issue Feb 7, 2024 · 0 comments · Fixed by #4410
Labels
bug Something isn't working

Comments

@lmansur
Copy link

lmansur commented Feb 7, 2024

Description

Passing a two-element array to stroke.width while using a two-series sparkline chart breaks the rendering of the chart. It seems related to this commit, specifically the part where math is being performed on stroke.width, even though it might be an array(L54-L56): 2ac1adb

Steps to Reproduce

  1. Create a two-series sparkline chart
  2. Add two values for stroke.width, like [2, 3]

Expected Behavior

Render each series with the given stroke width

Actual Behavior

The chart can't be rendered

Screenshots

When not specifying the stroke width:
image

When specifying a two-element array stroke width:
image

Reproduction Link

https://codepen.io/lmansur/pen/mdojgWm?editors=1111

@lmansur lmansur added the bug Something isn't working label Feb 7, 2024
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

Successfully merging a pull request may close this issue.

1 participant