Pie chart values - off center slices

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Bank Van Breda
Newbie
Newbie
Posts: 22
Joined: Tue Aug 08, 2017 12:00 am

Pie chart values - off center slices

Post by Bank Van Breda » Tue May 08, 2018 1:29 pm

Screen Shot 2018-05-08 at 15.27.21.png
Screen Shot 2018-05-08 at 15.27.21.png (59.69 KiB) Viewed 1970 times
Any reason why the slice center points are not stopping in the center of the pie chart?

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") });

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Pie chart values - off center slices

Post by Sandra » Wed May 09, 2018 12:46 pm

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:

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,
			};

		}
Hoping this helps you.

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
Image Image Image Image Image Image
Instructions - How to post in this forum

Bank Van Breda
Newbie
Newbie
Posts: 22
Joined: Tue Aug 08, 2017 12:00 am

Re: Pie chart values - off center slices

Post by Bank Van Breda » Mon May 14, 2018 11:09 am

I guess I'll wait for the bug fix... because setting each slice as exploded with value 5 has following visual effect.
Screen Shot 2018-05-14 at 13.08.17.png
Screen Shot 2018-05-14 at 13.08.17.png (72.41 KiB) Viewed 1949 times

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Pie chart values - off center slices

Post by Sandra » Mon May 14, 2018 3:31 pm

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
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Pie chart values - off center slices

Post by Sandra » Thu May 17, 2018 12:40 pm

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
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Bank Van Breda
Newbie
Newbie
Posts: 22
Joined: Tue Aug 08, 2017 12:00 am

Re: Pie chart values - off center slices

Post by Bank Van Breda » Fri May 18, 2018 2:27 pm

Thanks for the great support! Now works as expected :)

Post Reply