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

Line chart: stroke_style doesn't work for serie #526

Open
bedeberger opened this issue Nov 29, 2021 · 1 comment
Open

Line chart: stroke_style doesn't work for serie #526

bedeberger opened this issue Nov 29, 2021 · 1 comment

Comments

@bedeberger
Copy link

Since 3.0.0 (installed via pip) the parameter stroke_style within a line chart doesn't work anymore. Do you experienced the same issue? What is your proposal? Downgrad to an older version? Example:

chart.add("Serie", df.to_list(), dots_size=4, stroke_style={'width': 3})
@micha030201
Copy link

This is a bug caused by this commit: 51a96d3

It's exactly as @cbeytas described it in the comment there -- stroke_width set from a Style is applied with more specificity and thus overrides the options set by stroke_style.

You can hot-patch this locally by removing those lines from style.css, or you can write a Style that sets the width that you want. More generally, that commit should probably be reverted and a better thought-out solution implemented.

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

2 participants