Hi,
I'm using TeeChart 5.02 with Delphi 6 and want to use a TPolar series. I've encountered the folowing problems :
1) I'm unable to change line color from one point to another.
2) When printing the plots arn't circular even with proportional on.
Is there any tricks that I can use, or are the issues solved in a later release ?
TPolar is only 1 color and printing wrong
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi York,
You can do it changing series pen color:
You should set circled property to true:
Also notice that both properties can be configured using the chart editor at design-time.
1) I'm unable to change line color from one point to another.
You can do it changing series pen color:
Code: Select all
Series1.Pen.Color:=clBlue;
2) When printing the plots arn't circular even with proportional on.
You should set circled property to true:
Code: Select all
Series1.Circled:=true;
What I suggested can be done using v5.02, however current version (v7.04) has many more features, enhancements, ... If you are interested you can download the fully functional evaluation version which includes a features demo that has examples of almost all features.Is there any tricks that I can use, or are the issues solved in a later release ?
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 |
Hi Narcis,
Thank You for the answer, but...
If I use Series1.Pen.Color:=clBlue the entire line will change color. I just want a segment between two points to change color like a TLineSeries can do it.
I'm using the property Series1.Circled:=true and the series is a circle on screen, but not when printed. Even with proportional on.
Can version v7.04 function with Delphi 6 or do I have to upgrade ?
Thank You for the answer, but...
If I use Series1.Pen.Color:=clBlue the entire line will change color. I just want a segment between two points to change color like a TLineSeries can do it.
I'm using the property Series1.Circled:=true and the series is a circle on screen, but not when printed. Even with proportional on.
Can version v7.04 function with Delphi 6 or do I have to upgrade ?
Hi,
In the meantime, try using the StretchDraw print trick :
The key point is your printer drawing rectangle has the same proportions as original chart. If this is obeyed, then the circles will be round when printed too.
This cannot be done with the existing version, you only can change the entire line or the a specific pointer using Series1.ValueColor[x] property.If I use Series1.Pen.Color:=clBlue the entire line will change color. I just want a segment between two points to change color like a TLineSeries can do it.
This is a known bug, already added on our bug list. The whole problem is on screen ratio is not fully respected (because some circles are adjusted to fit in specific rectangle). We are aware of this problem and will try to find a better solution for nexr releases.I'm using the property Series1.Circled:=true and the series is a circle on screen, but not when printed. Even with proportional on.
In the meantime, try using the StretchDraw print trick :
Code: Select all
var tmpMeta: TMetafile;
begin
Chart1.BevelOuter := bvNone;
Chart1.Frame.Visible := False;
tmpMeta := Chart1.TeeCreateMetafile(True,Chart1.ClientRect);
try
Printer.Orientation := poLandscape;
Printer.BeginDoc;
try
Printer.Canvas.StretchDraw(Rect(10,10,Printer.PageWidth - 10,
Printer.PageHeight - 10),tmpMeta);
finally
Printer.EndDoc;
end;
finally
tmpMeta.Free;
end;
end;
Yes, the TeeChart v7.04 can work work Delphi6 (with all the updates).Can version v7.04 function with Delphi 6 or do I have to upgrade ?
Pep Jorge
http://support.steema.com
http://support.steema.com