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

Expose MiniatureShapeSize on ISeries interface #880

Merged
merged 1 commit into from Feb 10, 2023

Conversation

MithrilMan
Copy link
Contributor

Exposing MiniatureShapeSize on ISeries interface (that's already implemented in the Series class) allows to customize the theme using HasRuleForAnySeries or specialized extensions like HasRuleForLineSeries,

Exposing MiniatureShapeSize on ISeries interface (that's already implemented in the Series class) allows to customize the theme using `HasRuleForAnySeries` or specialized extensions like `HasRuleForLineSeries`,
@MithrilMan
Copy link
Contributor Author

On my local solution I disabled most of the project because I'm interested in Blazor (and Winform to test it fast)
Using this in Program.cs file (WinFormsSample.Program)

LiveChartsCore.LiveCharts.Configure(config => config
            .AddSkiaSharp()
            .AddDefaultMappers()
            .AddLightTheme(theme => theme
                .HasRuleForAnySeries(series =>
                {
                    series.MiniatureShapeSize = 5;
                })
                )
            );

gave this result on the General/Legend sample (and every other sample using Legends)
image

as opposed to the original one
image

@beto-rodriguez
Copy link
Owner

Thanks for the PR!

@beto-rodriguez beto-rodriguez merged commit 7fee4e2 into beto-rodriguez:dev Feb 10, 2023
@MithrilMan MithrilMan deleted the patch-1 branch June 6, 2023 21:36
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

Successfully merging this pull request may close these issues.

None yet

2 participants