Page 1 of 1

Pie chart values - off center slices

Posted: Tue May 08, 2018 1:29 pm
by 18281487
Screen Shot 2018-05-08 at 15.27.21.png
Screen Shot 2018-05-08 at 15.27.21.png (59.69 KiB) Viewed 19333 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") });

Re: Pie chart values - off center slices

Posted: Wed May 09, 2018 12:46 pm
by 10050769
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

Re: Pie chart values - off center slices

Posted: Mon May 14, 2018 11:09 am
by 18281487
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 19312 times

Re: Pie chart values - off center slices

Posted: Mon May 14, 2018 3:31 pm
by 10050769
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

Re: Pie chart values - off center slices

Posted: Thu May 17, 2018 12:40 pm
by 10050769
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

Re: Pie chart values - off center slices

Posted: Fri May 18, 2018 2:27 pm
by 18281487
Thanks for the great support! Now works as expected :)