Pie chart values - off center slices
-
- Newbie
- Posts: 22
- Joined: Tue Aug 08, 2017 12:00 am
Pie chart values - off center slices
The values for the middle one are these by the way
pieData.Data.Add(new GraphData() { Value = 81, Color = Color.FromHex("#B9C4D8") });
pieData.Data.Add(new GraphData() { Value = 1, Color = Color.FromHex("#1D386D") });
pieData.Data.Add(new GraphData() { Value = 10, Color = Color.FromHex("#F5A623") });
pieData.Data.Add(new GraphData() { Value = 5, Color = Color.FromHex("#BBC3D3") });
pieData.Data.Add(new GraphData() { Value = 3, Color = Color.FromHex("#1D386D") });
Re: Pie chart values - off center slices
Hello Bank Van Breda,
I would like inform you that the Pen problems is added in Teechart Xamarin.iOS Bugzilla tracker to review the problem to upcoming maintenance release. Here's the link: http://bugs.teechart.net/show_bug.cgi?id=2033
On the other hand, finally, we have found a good solution, that allow to explode any pie slice. The code below show you how can do it:
Hoping this helps you.
Thanks in advance
I would like inform you that the Pen problems is added in Teechart Xamarin.iOS Bugzilla tracker to review the problem to upcoming maintenance release. Here's the link: http://bugs.teechart.net/show_bug.cgi?id=2033
On the other hand, finally, we have found a good solution, that allow to explode any pie slice. The code below show you how can do it:
Code: Select all
public MainPage()
{
InitializeComponent();
tChart1 = new ChartView();
tChart1.Chart.Panning.Allow = ScrollModes.None;
tChart1.Chart.Panel.Gradient.Visible = false;
tChart1.Chart.Panel.Color = Color.White;
tChart1.Chart.Walls.Back.Visible = false;
tChart1.Chart.Header.Visible = false;
tChart1.Chart.Legend.Visible = false;
tChart1.Chart.Aspect.View3D = false;
Steema.TeeChart.Styles.Pie pie1 = new Steema.TeeChart.Styles.Pie(tChart1.Chart);
pie1.Add(81, Color.FromHex("#B9C4D8"));
pie1.Add(1, Color.FromHex("#1D386D"));
pie1.Add(10, Color.FromHex("#F5A623"));
pie1.Add(5, Color.FromHex("#BBC3D3"));
pie1.Add(3, Color.FromHex("#BBC3D3"));
pie1.Marks.Visible = false;
pie1.AutoPenColor = false;
pie1.Pen.Visible = false;
pie1.Circled = true;
pie1.ExplodedSlice[0] = 5;
pie1.ExplodedSlice[1] = 10;
pie1.ExplodedSlice[2] = 5;
pie1.ExplodedSlice[3] = 15;
pie1.ExplodedSlice[4] = 5;
tChart1.WidthRequest = 650;
tChart1.HeightRequest = 350;
Content = new StackLayout
{
Children =
{
tChart1
},
VerticalOptions = LayoutOptions.CenterAndExpand,
HorizontalOptions = LayoutOptions.CenterAndExpand,
};
}
Thanks in advance
Best Regards,
Sandra Pazos / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
-
- Newbie
- Posts: 22
- Joined: Tue Aug 08, 2017 12:00 am
Re: Pie chart values - off center slices
I guess I'll wait for the bug fix... because setting each slice as exploded with value 5 has following visual effect.
Re: Pie chart values - off center slices
Hello Bank Van Breda,
I would like inform you we're working to fix the problem. We contact with you as soon as possible.
Thanks in advance
I would like inform you we're working to fix the problem. We contact with you as soon as possible.
Thanks in advance
Best Regards,
Sandra Pazos / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Re: Pie chart values - off center slices
Hello Bank Van Breda,
We have published a new TeeChart.Net for Xamarin.Froms maintenance release where the bug id2033 is fixed. You can download it from Client Download page
Thanks in advance
We have published a new TeeChart.Net for Xamarin.Froms maintenance release where the bug id2033 is fixed. You can download it from Client Download page
Thanks in advance
Best Regards,
Sandra Pazos / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
-
- Newbie
- Posts: 22
- Joined: Tue Aug 08, 2017 12:00 am
Re: Pie chart values - off center slices
Thanks for the great support! Now works as expected