DonutSeries

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
n2n
Newbie
Newbie
Posts: 19
Joined: Mon Nov 23, 2015 12:00 am

DonutSeries

Post by n2n » Fri Aug 19, 2016 6:37 am

Hi,
I try to use DonutSeries with style like https://www.steema.com/uploads/products/Pie_Chart.png

but still ineffectual. Is it possible?

Marc
Site Admin
Site Admin
Posts: 1272
Joined: Thu Oct 16, 2003 4:00 am
Location: Girona
Contact:

Re: DonutSeries

Post by Marc » Mon Aug 22, 2016 12:14 pm

Hello,

Yes, use SliceHeight to vary heights.

Eg.
series1.FillSampleValues();
Series1.SliceHeight[0]:= 1000;

Regards,
Marc Meumann
Steema Support

n2n
Newbie
Newbie
Posts: 19
Joined: Mon Nov 23, 2015 12:00 am

Re: DonutSeries

Post by n2n » Wed Aug 24, 2016 11:48 am

Ok thanks and one question more. So we have Hover with redline, How I can change redColor to some else color
Attachments
Untitled.png
Untitled.png (10.18 KiB) Viewed 15795 times

n2n
Newbie
Newbie
Posts: 19
Joined: Mon Nov 23, 2015 12:00 am

Re: DonutSeries

Post by n2n » Thu Aug 25, 2016 6:23 am

Hi,
When I pass data (2,1,1,15) to DonutSeries looks not expected. Here is example
How I can fix it?
Attachments
DonutSeries.rar
(11.67 KiB) Downloaded 767 times

Yeray
Site Admin
Site Admin
Posts: 9614
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: DonutSeries

Post by Yeray » Fri Aug 26, 2016 10:20 am

Hello,
n2n wrote:So we have Hover with redline, How I can change redColor to some else color
You can change this property:

Code: Select all

Chart1.Legend.Selected.Hover.Font.Color:=clBlue;
n2n wrote:When I pass data (2,1,1,15) to DonutSeries looks not expected.
I'm afraid I have to confirm this is a well known and difficult to solve problem with the TPieSeries in some situations.
It's not a trivial problem that would probably need a complete redesign of the series to be fixed.

The only workaround I can think on at the moment is to change the rotation of the pie:

Code: Select all

DonutSeries1.RotationAngle:=50;
http://bugs.teechart.net/show_bug.cgi?id=935
http://bugs.teechart.net/show_bug.cgi?id=939
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

n2n
Newbie
Newbie
Posts: 19
Joined: Mon Nov 23, 2015 12:00 am

Re: DonutSeries

Post by n2n » Mon Aug 29, 2016 7:22 am

1.png
1.png (5.14 KiB) Viewed 15752 times
hi Yeray

Code: Select all

DonutSeries1.RotationAngle:=50;
it is no solution in my case cause we have timer with

Code: Select all

DonutSeries1.Rotate(358);
anyway there are few pic with bags You should to fix them

thanks.
Attachments
3.png
3.png (3.98 KiB) Viewed 15751 times
2.png
2.png (4.89 KiB) Viewed 15747 times

Yeray
Site Admin
Site Admin
Posts: 9614
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: DonutSeries

Post by Yeray » Mon Aug 29, 2016 10:09 am

Hello,

Note OpenGL gives a better result. Ie:
pie1.png
pie1.png (4.94 KiB) Viewed 15753 times
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

n2n
Newbie
Newbie
Posts: 19
Joined: Mon Nov 23, 2015 12:00 am

Re: DonutSeries

Post by n2n » Fri Sep 23, 2016 6:39 am

Ok thanks. Can you give some example please?

Yeray
Site Admin
Site Admin
Posts: 9614
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: DonutSeries

Post by Yeray » Fri Sep 23, 2016 7:41 am

Hello,
n2n wrote:Can you give some example please?
I took your example form here.

Code: Select all

uses TeeGLCanvas;

procedure TForm1.FormCreate(Sender: TObject);
begin
  //Activate OpenGL
  Chart1.Canvas:=TGLCanvas.Create;
  Chart1.Aspect.Elevation:=40;

  //Show Pen to better see the slices
  DonutSeries1.Pen.Visible:=true;

  //Make the Pen thinner
  Chart1.Draw;
  DonutSeries1.PiePen.Width:=0;
end;
I also added this
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply