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

Donut Chart is not showing all the labels. #124

Open
pakbaz opened this issue Oct 26, 2018 · 1 comment
Open

Donut Chart is not showing all the labels. #124

pakbaz opened this issue Oct 26, 2018 · 1 comment
Labels

Comments

@pakbaz
Copy link

pakbaz commented Oct 26, 2018

I have 5 labels but Donut Chart picks 4 label randomly and show and ignores last one


 var entries = new Microcharts.Entry[]
             {
                 new Microcharts.Entry(5)
                {
                    Label = "A",
                    ValueLabel = "5",
                    Color = Common.Tools.GetValueTagColor("A")
                },
                new Microcharts.Entry(1)
                {
                    Label = "B",
                    ValueLabel = "1",
                    Color = Common.Tools.GetValueTagColor("B")
                },
                new Microcharts.Entry(4)
                {
                    Label = "C",
                    ValueLabel = "4",
                    Color = Common.Tools.GetValueTagColor("C")
                },
                new Microcharts.Entry(3)
                {
                    Label = "D",
                    ValueLabel = "3",
                    Color = Common.Tools.GetValueTagColor("D")
                },
                 new Microcharts.Entry(2)
                {
                    Label = "F",
                    ValueLabel = "2",
                    Color = Common.Tools.GetValueTagColor("F")
                }
             };

            chartView.Chart = new Microcharts.DonutChart()
            {
                Entries = entries,
                Margin = 30,
                LabelTextSize = 50,
                HoleRadius = 0.5f,
                MinValue = 1,
                MaxValue = 5
            };
@Nixon-Joseph
Copy link
Contributor

@pakbaz
Just for completeness, can you please provide some information about your project? i.e. Xamarin version, native or forms, is this issue specific to one platform, what does the view you're putting this in look like. That sort of thing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants