TRoseChart Zoom

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Sean Palmer
Newbie
Newbie
Posts: 7
Joined: Mon Jul 29, 2013 12:00 am

TRoseChart Zoom

Post by Sean Palmer » Tue Sep 10, 2013 10:24 am

Hi,

I would like to zoom in on a Rose Chart but when I zoom in using the mouse wheel chart only zooms on one axis, is there any way to force it to do this correctly and also clip the rose to the bounds of the circle?

Regards,
Sean.

Image

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

Re: TRoseChart Zoom

Post by Yeray » Thu Sep 12, 2013 3:53 pm

Hi,

I can't reproduce no one of the reported issues with the following code and TeeChart v2013.08:

Code: Select all

uses TeeRose;

var Chart1: TChart;

procedure TForm1.FormCreate(Sender: TObject);
var i: Integer;
begin
  Chart1:=TChart.Create(Self);
  Chart1.Parent:=Self;
  Chart1.Align:=alClient;

  Chart1.View3D:=false;

  for i:=0 to 4 do
  with Chart1.AddSeries(TRoseSeries) as TRoseSeries do
  begin
    FillSampleValues;
    Pointer.Visible:=false;
  end;
end;
What TeeChart version are you using?
Could you please arrange a simple example project we can run as-is to reproduce the problems here?
Thanks in advance.
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

Sean Palmer
Newbie
Newbie
Posts: 7
Joined: Mon Jul 29, 2013 12:00 am

Re: TRoseChart Zoom

Post by Sean Palmer » Tue Sep 24, 2013 9:36 am

The same problem also occurs in the TeeChart Pro Examples app, just scroll your mouse wheel over the rose chart...
RoseZoom.jpg
RoseZoom.jpg (62.82 KiB) Viewed 6417 times
I am using Build 2013.08.130521

Sean.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: TRoseChart Zoom

Post by Narcís » Tue Sep 24, 2013 10:40 am

Hi Sean,

Thanks for your feedback. I could reproduce the issue here and added it (TV52016726) to the defect list to be implemented in future releases.
clip the rose to the bounds of the circle?
You can clip the rose to the chart rectangle bounds like this:

Code: Select all

procedure TForm2.Series1AfterDrawValues(Sender: TObject);
begin
  Chart1.Canvas.UnClipRectangle;
end;

procedure TForm2.Series1BeforeDrawValues(Sender: TObject);
begin
  Chart1.Canvas.ClipRectangle(Chart1.ChartRect);
end;
Best Regards,
Narcís Calvet / 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

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: TRoseChart Zoom

Post by Narcís » Wed Nov 13, 2013 3:17 pm

Hi Sean,

As an update, setting TChart.ClipPoints to true already clips the series, for example:

Code: Select all

  Chart1.ClipPoints:=True;
Best Regards,
Narcís Calvet / 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

Post Reply