Page 1 of 1
DonutSeries
Posted: Fri Aug 19, 2016 6:37 am
by 16577003
Hi,
I try to use DonutSeries with style like
https://www.steema.com/uploads/products/Pie_Chart.png
but still ineffectual. Is it possible?
Re: DonutSeries
Posted: Mon Aug 22, 2016 12:14 pm
by Marc
Hello,
Yes, use SliceHeight to vary heights.
Eg.
series1.FillSampleValues();
Series1.SliceHeight[0]:= 1000;
Regards,
Marc Meumann
Re: DonutSeries
Posted: Wed Aug 24, 2016 11:48 am
by 16577003
Ok thanks and one question more. So we have Hover with redline, How I can change redColor to some else color
Re: DonutSeries
Posted: Thu Aug 25, 2016 6:23 am
by 16577003
Hi,
When I pass data (2,1,1,15) to DonutSeries looks not expected. Here is example
How I can fix it?
Re: DonutSeries
Posted: Fri Aug 26, 2016 10:20 am
by yeray
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:
http://bugs.teechart.net/show_bug.cgi?id=935
http://bugs.teechart.net/show_bug.cgi?id=939
Re: DonutSeries
Posted: Mon Aug 29, 2016 7:22 am
by 16577003
- 1.png (5.14 KiB) Viewed 15725 times
hi Yeray
it is no solution in my case cause we have timer with
anyway there are few pic with bags You should to fix them
thanks.
Re: DonutSeries
Posted: Mon Aug 29, 2016 10:09 am
by yeray
Hello,
Note OpenGL gives a better result. Ie:
- pie1.png (4.94 KiB) Viewed 15726 times
Re: DonutSeries
Posted: Fri Sep 23, 2016 6:39 am
by 16577003
Ok thanks. Can you give some example please?
Re: DonutSeries
Posted: Fri Sep 23, 2016 7:41 am
by yeray
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