Cyan color

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
cssesuc
Newbie
Newbie
Posts: 44
Joined: Wed Apr 08, 2015 12:00 am

Cyan color

Post by cssesuc » Tue Sep 15, 2015 4:26 pm

Hi,
I do have a Chart, on which I draw a time series.
if the bottom axis grid overlap with the vertical red line drawn at each new day of the horizontal axis, I get a vertical cyan line.
Is there some approach I could use here to fix this issue, which is illustrated on the attached snapshot..
in advance, Many thanks for your valuable help here
Attachments
Capture.PNG
Capture.PNG (1.82 KiB) Viewed 8517 times
thanks,
Nabil Ghodbane (PhD. Habil)

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

Re: Cyan color

Post by Yeray » Wed Sep 16, 2015 12:07 pm

Hello,

I'm not sure to understand how are you drawing the vertical red line.
Could you please arrange a simple example project we can run as-is to reproduce the problem?
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

cssesuc
Newbie
Newbie
Posts: 44
Joined: Wed Apr 08, 2015 12:00 am

Re: Cyan color

Post by cssesuc » Wed Sep 16, 2015 1:39 pm

Hi, I will try to prepare some standalone example ASAP, in the meanwhile, maybe the attached screen snapshot could help to see the issue, I am trying to describe here.
Basically as you can see it, if the red vertical line overlaps the grid vertical line (dashed or not), you get some kind of blending of the two colors.
Is there a way to avoid that ? Is there some known issue about it?
Basically, I am using it like:
Canvas:= TGDIPlusCanvas.Create;
// see http://www.teechart.net/support/viewtop ... =3&t=15740
TGDIPlusCanvas(Canvas).AntiAliasText:=gpfDefault;
TGDIPlusCanvas(Canvas).AntiAlias:= False;
LeftAxis.Axis.Width:= 3;
View3D := False;
TopAxis.LabelStyle := talNone;
TopAxis.Axis.Width := 1;
TopAxis.LabelsSize := 7;
LeftAxis.Automatic := False;
LeftAxis.MinimumOffset := 0;
LeftAxis.MaximumOffset := 0;
LeftAxis.Grid.Color:= clGray;
LeftAxis.Grid.Style:= psDash;
LeftAxis.Grid.SmallSpace:= 1;
LeftAxis.GridCentered:= True;
BottomAxis.DateTimeFormat := 'dd/mm/yyyy hh:nn';
BottomAxis.LabelsSeparation := 70;
BottomAxis.LabelsSize := 30;
BottomAxis.LabelsFont.Color := clNavy;
BottomAxis.Increment := 60;
BottomAxis.Grid.Color:= clGray;
BottomAxis.Grid.Style:= psDash;
BottomAxis.Grid.SmallSpace:= 1;
Attachments
Capture.PNG
Capture.PNG (18.21 KiB) Viewed 8476 times
thanks,
Nabil Ghodbane (PhD. Habil)

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

Re: Cyan color

Post by Yeray » Thu Sep 17, 2015 10:21 am

Hello,

I think the issue is that the lines drawn by the TColorLineTool are XOR'd with the background.
You can change this behaviour setting its DragRepaint property to true:

Code: Select all

ColorLine1.DragRepaint:=true;
If you still find problems with it, please try to arrange a simple example project we can run as-is to reproduce the problem here.
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

cssesuc
Newbie
Newbie
Posts: 44
Joined: Wed Apr 08, 2015 12:00 am

Re: Cyan color

Post by cssesuc » Fri Sep 25, 2015 1:36 pm

many thanks, your suggestion helped a lot. It works nicely now,
nabil
thanks,
Nabil Ghodbane (PhD. Habil)

Post Reply