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

GaugeGenerator.BuildSolidGauge label does not display 0 values #1200

Closed
Schoof-T opened this issue Aug 30, 2023 · 0 comments
Closed

GaugeGenerator.BuildSolidGauge label does not display 0 values #1200

Schoof-T opened this issue Aug 30, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@Schoof-T
Copy link

Schoof-T commented Aug 30, 2023

Describe the bug
After upgrading to the newest prerelease version, 0 values are no longer displayed on gauges.

To Reproduce
Steps to reproduce the behavior:

  1. Generate a gauge with a 0 value
                var pieChart = GaugeGenerator.BuildSolidGauge(new GaugeItem(0, series =>
                {
                    series.Fill = new SolidColorPaint(new SkiaSharp.SKColor(186, 12, 47));
                    series.DataLabelsSize = 50;
                    series.DataLabelsPosition = LiveChartsCore.Measure.PolarLabelsPosition.ChartCenter;
                    series.InnerRadius = 175;
                }),
                new GaugeItem(GaugeItem.Background, series =>
                {
                    series.InnerRadius = 175;
                    series.Fill = new SolidColorPaint(new SkiaSharp.SKColor(243, 243, 243));
                }));

                var stockValueGaugeChart = new SKPieChart
                {
                    MaxValue = 100,
                    Series = pieChart,
                    InitialRotation = -180,
                    MaxAngle = 180
                };

                stockValueGaugeChart.SaveImage("D:\test.png");
  1. Check the generated gauge
    image

Expected behavior
The gauge should show '0', like in the previous version. (The % is added through a formatter)
image

Desktop (please complete the following information):

  • OS: Windows
  • Version 2.0.0-beta.920
@beto-rodriguez beto-rodriguez added the bug Something isn't working label Aug 31, 2023
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

No branches or pull requests

2 participants