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

[Feature Request] Change legend text height #527

Open
KmolYuan opened this issue Dec 18, 2023 · 0 comments
Open

[Feature Request] Change legend text height #527

KmolYuan opened this issue Dec 18, 2023 · 0 comments

Comments

@KmolYuan
Copy link
Contributor

What is the feature?

Add a configuration method for SeriesLabelStyle to adjust the legend style to fit the paper article.
Currently, SeriesLabelStyle draws the legend with a MultiLineText object, and its default text height is 1.25.

chart
    .configure_series_labels()
    .legend_text_height(1.) // invoke `MultiLineText::set_line_height(f64)`
    .draw()?
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