Pie chart details

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 details

Post by Bank Van Breda » Thu Apr 19, 2018 9:11 am

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 21210 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 21210 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?

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

Re: Pie chart details

Post by Sandra » Fri Apr 20, 2018 11:35 am

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
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 details

Post by Bank Van Breda » Fri Apr 20, 2018 12:21 pm

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 21201 times

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

Re: Pie chart details

Post by Sandra » Tue Apr 24, 2018 11:31 am

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
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 details

Post by Bank Van Breda » Tue Apr 24, 2018 12:50 pm

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.

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

Re: Pie chart details

Post by Sandra » Tue Apr 24, 2018 2:08 pm

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
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 details

Post by Sandra » Thu Apr 26, 2018 4:51 pm

Hello Bank van Breda,

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

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 details

Post by Bank Van Breda » Fri Apr 27, 2018 11:58 am

Yes!
Thanks for the quick fix. Pie chart is looking perfect now!

Post Reply