Page 1 of 1

Pie chart details

Posted: Thu Apr 19, 2018 9:11 am
by 18281487
Having some trouble searching through the examples and the documentation on how to create following pie chart.
Screen Shot 2018-04-19 at 11.07.12.png
DesignVersion
Screen Shot 2018-04-19 at 11.07.12.png (20.51 KiB) Viewed 17699 times
With some trail and error I got following result
Screen Shot 2018-04-19 at 11.06.47.png
SteemaVersion
Screen Shot 2018-04-19 at 11.06.47.png (25.94 KiB) Viewed 17699 times
I'm working with Xamarin Forms version
So several quesiotns.
1. What ( and how ) is the best solution to have each slice exploded ( so not only the biggest )? I did pie.ExplodedSlice.Add(...) for each slice but this seems to have no effect...
2. Current version has a fine border around each slice, how can I get rid of this? Or can this also be used to fix 1.? If I can make it wider and white?

Re: Pie chart details

Posted: Fri Apr 20, 2018 11:35 am
by 10050769
Hello Bank,
1. What ( and how ) is the best solution to have each slice exploded ( so not only the biggest )? I did pie.ExplodedSlice.Add(...) for each slice but this seems to have no effect...
I'm afraid isn't possible do slice exploded for each slice, but you have same effect setting the Pie Border pen as white and increasing its size. The code below shows you how can do it:

Code: Select all

	private void InitializeChart()
		{
			tChart1.Aspect.View3D = false;

			tChart1.Dock = DockStyle.Fill;
			Steema.TeeChart.Styles.Pie pie1 = new Steema.TeeChart.Styles.Pie(tChart1.Chart);
			pie1.FillSampleValues(3);
			pie1.Marks.Visible = false;
			pie1.Pen.Color = Color.White;
			pie1.AutoPenColor = false;
			pie1.Pen.Width = 10;
}
2. Current version has a fine border around each slice, how can I get rid of this? Or can this also be used to fix 1.? If I can make it wider and white?
You can do that you need disable the AutoPenColor propierty. The line code below shows you how:

Code: Select all

			pie1.AutoPenColor = false;

Hoping this helps you.
Thanks in advance

Re: Pie chart details

Posted: Fri Apr 20, 2018 12:21 pm
by 18281487
Hey Sandra,

Thanks for the reply!
Trying out the Pen color and width settings, but somehow the pen width is only applied to 1 of the slices and only the outerbound?
Screen Shot 2018-04-20 at 14.21.08.png
SteemaVersion
Screen Shot 2018-04-20 at 14.21.08.png (20.43 KiB) Viewed 17690 times

Re: Pie chart details

Posted: Tue Apr 24, 2018 11:31 am
by 10050769
Hello Bank Van Breda,

Sorry for the delay.

I would like inform you we have reproduced and fixed the Pie.Pen Size problem. Tomorrow, we add a new Steema.TeeChart.NET.STD.Xamarin.Forms maintenance release in the Nuget where the fix is included.

Thanks in advance

Re: Pie chart details

Posted: Tue Apr 24, 2018 12:50 pm
by 18281487
Wow Sandra, that is awesome news.

Only 1 small remark, currently I downloaded the Xamarin version : TeeChartXamarinForms-4.1.2018.01040-osx.zip from the client area on the website.
We reference those dll's inside our xamarin project.

So will there be an update for those too? Currently we are still working with PCL projects in Xamarin.

Re: Pie chart details

Posted: Tue Apr 24, 2018 2:08 pm
by 10050769
Hello Bank van Breda,

We can prepare a pre-release for you during this week. We contact with you, as soon as possible when the version is done.

Thanks in advance

Re: Pie chart details

Posted: Thu Apr 26, 2018 4:51 pm
by 10050769
Hello Bank van Breda,

We have already published a new assemblies. You can download this from Client Area.

Thanks in advance

Re: Pie chart details

Posted: Fri Apr 27, 2018 11:58 am
by 18281487
Yes!
Thanks for the quick fix. Pie chart is looking perfect now!