Polar Series
Polar Series
I am trying to create a chart that is sort of a cross between a polar plot and a color grid. Is this possible?
It would look like this...
It was created from a TColorGridSeries that Looks like this...
It would look like this...
It was created from a TColorGridSeries that Looks like this...
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Re: Polar Series
Hi dpatch,
Sure! There's a specific series for that, the PolarGrid series? You can find an example at All Features\Welcome!\Chart Styles\Extended\Polar Grid.
Sure! There's a specific series for that, the PolarGrid series? You can find an example at All Features\Welcome!\Chart Styles\Extended\Polar Grid.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Re: Polar Series
Thanks for the quick response!
I am looking at it now. Is there a way to leave the center empty/transparent (as shown above), or even display a BMP in it? I do not want the inside pixels so close together. Thanks.
I am looking at it now. Is there a way to leave the center empty/transparent (as shown above), or even display a BMP in it? I do not want the inside pixels so close together. Thanks.
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Re: Polar Series
Hi dpatch,
Casually, this is the same we discussed here a couple of days ago. PolarGrid series also has DrawZone method. However, it's also affected by ID850. Please feel free to sign up at bugzilla and add yourself to the CC List to receive bug update notifications.
Casually, this is the same we discussed here a couple of days ago. PolarGrid series also has DrawZone method. However, it's also affected by ID850. Please feel free to sign up at bugzilla and add yourself to the CC List to receive bug update notifications.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
-
- Newbie
- Posts: 60
- Joined: Fri Nov 22, 2013 12:00 am
Re: Polar Series
If you're using a PolarGridSeries, can't you just not fill the inner cells? That would certainly make some Kind of a "hole" in there.
Also, placing something like a Bitmap in the centre of the polar diagram sounds appealing. Currently, I would not know how to best place some VCL component like a TPanel or TImage there so that it won't overlap with the diagram and only "fills" the hole.
Also, placing something like a Bitmap in the centre of the polar diagram sounds appealing. Currently, I would not know how to best place some VCL component like a TPanel or TImage there so that it won't overlap with the diagram and only "fills" the hole.
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Re: Polar Series
Hello Jens,
Thanks for your contribution.
Thanks for your contribution.
Yes, you are right. You could set those cells to null not to be painted, for example:jens.mertelmeyer wrote:If you're using a PolarGridSeries, can't you just not fill the inner cells? That would certainly make some Kind of a "hole" in there.
Code: Select all
procedure TForm1.FormCreate(Sender: TObject);
var Sector, Track : Integer;
tmp : TChartValue;
index : Integer;
begin
with Series1 do
begin
Clear;
CircleLabels:=True;
RadiusIncrement:=1;
NumSectors:=15;
NumTracks:=10;
BeginUpdate;
for Sector:=0 to NumSectors-1 do
for Track:=0 to NumTracks-1 do
begin
tmp:=0.5*Sqr(Cos(Sector/(NumSectors*0.2)))+
Sqr(Cos(Track/(NumTracks*0.2)))-
Cos(Track/(NumTracks*0.5));
index:=AddCell(Sector,Track,tmp);
if Track < 5 then
SetNull(index);
end;
EndUpdate;
AngleIncrement:=360/NumSectors;
end;
end;
It might be easier drawing an image in the chart canvas using its Draw or StretchDraw methods. The most difficult part would be calculating the exact image size and location.jens.mertelmeyer wrote:Also, placing something like a Bitmap in the centre of the polar diagram sounds appealing. Currently, I would not know how to best place some VCL component like a TPanel or TImage there so that it won't overlap with the diagram and only "fills" the hole.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Re: Polar Series
I don't seem to be able to find the TPolarGridSeries to drop it on the form. I see it in the User Guide but can't find it in TCharts. Can you help? Thanks!
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Re: Polar Series
Hi dpatch,
At design-time, using the chart editor (double-click on a TChart component) you can find it at Series > Add > 3D > Polar Grid, scrolling down if necessary. At run-time you can find it at the TeePolarGrid class.
At design-time, using the chart editor (double-click on a TChart component) you can find it at Series > Add > 3D > Polar Grid, scrolling down if necessary. At run-time you can find it at the TeePolarGrid class.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Re: Polar Series
OK, I got this working. Is there a way to speed things up? Sort of like setting IrregularGrid in TColorGridSeries. Everything draws REALLY slow.
Re: Polar Series
Hello dpatch,
Sorry for the delay. I think can be useful for you take a look in real time article where you can see different techniques to increase speed of your Chart.
Hoping it will help otherwise, don't hesitate to let me know.
Thanks in advance,
Sorry for the delay. I think can be useful for you take a look in real time article where you can see different techniques to increase speed of your Chart.
Hoping it will help otherwise, don't hesitate to let me know.
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 |
Instructions - How to post in this forum |
Re: Polar Series
Sandra,
I truely appreciate you reply. I have read the documents regarding how to speed up the plotting and honestly they are of little help. These are the same documents that you have referenced for years. If you put a lot of data into this type of plot you will quickly see my point. I think you can easily generate an image like the one I posted and tell me if you understand my issue. If not, I can supply you with a sample that will make my point.
Thanks in advance,
dave
I truely appreciate you reply. I have read the documents regarding how to speed up the plotting and honestly they are of little help. These are the same documents that you have referenced for years. If you put a lot of data into this type of plot you will quickly see my point. I think you can easily generate an image like the one I posted and tell me if you understand my issue. If not, I can supply you with a sample that will make my point.
Thanks in advance,
dave
Re: Polar Series
Hi Dave,
I've made a simple example and it seems to work fast for me here.
I've also tried incrementing the number of values (ie FillSampleValues(24) ending in 10.000 cells) and it still looks fast for me here.
FillSampleValues(24);
I've made a simple example and it seems to work fast for me here.
Code: Select all
uses TeePolarGrid;
procedure TForm1.FormCreate(Sender: TObject);
var index : Integer;
begin
Chart1.Align:=alClient;
Chart1.View3D:=false;
Chart1.Legend.Visible:=false;
with Chart1.AddSeries(TPolarGridSeries) do
begin
FillSampleValues(24);
for index:=0 to Count-1 do
if YValue[index] < 10 then
ValueColor[index]:=clBlack;
end;
end;
FillSampleValues(24);
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |