Web forum is in read-only mode. Login as active registered customer for write access
  Forum Search   New Posts New Posts

AdvGDIPChartView Colors

 Post Reply Post Reply
Author
Keene Douglas View Drop Down
New Member
New Member
Avatar

Joined: 04 Aug 2010
Posts: 20
Post Options Post Options   Quote Keene Douglas Quote  Post ReplyReply Direct Link To This Post Topic: AdvGDIPChartView Colors
    Posted: 22 Sep 2019 at 1:44pm
Hello
I am able to make the background gradient on a AdvGDIPChartView at design time, but in runtime, i try the following code to set up the AdvGDIPChartView:

   Self.AdvGDIPChartView1.Panes.Clear;
   Self.AdvGDIPChartView1.Panes.Add;
   Self.AdvGDIPChartView1.BeginUpdate;
   for MyCount := 0 to GNumberOfDevices-1 do  //here, i add a series for each device
   begin
      Self.AdvGDIPChartView1.Panes[0].Series.Add;
      Self.AdvGDIPChartView1.Panes[0].Series[MyCount].ChartType:=ctXYLine;
   end;
   Self.AdvGDIPChartView1.Panes[0].XAxis.UnitType:=utMinute;
   Self.AdvGDIPChartView1.Panes[0].Range.StartDate:=Now;

   Self.AdvGDIPChartView1.Panes[0].Series[0].Opacity:=95;
   Self.AdvGDIPChartView1.Panes[0].Series[0].Color:=clTeal;
   Self.AdvGDIPChartView1.Panes[0].Series[0].ColorTo:=clOlive;
   Self.AdvGDIPChartView1.Panes[0].Series[0].GradientType:=gtHorizontal;
   Self.AdvGDIPChartView1.Panes[0].Series[0].GradientDirection:=cgdHorizontal;
   Self.AdvGDIPChartView1.Panes[0].Series[0].Angle:=45;
   Self.AdvGDIPChartView1.Panes[0].Series[0].HatchStyle:=HatchStyleVertical;
   Self.AdvGDIPChartView1.EndUpdate;


yet the background remains white. Any suggestions?
Thanks
Doug
Back to Top
Pieter Scheldeman View Drop Down
TMS Support
TMS Support
Avatar

Joined: 18 May 2010
Posts: 3392
Post Options Post Options   Quote Pieter Scheldeman Quote  Post ReplyReply Direct Link To This Post Posted: 23 Sep 2019 at 3:36pm
You can change the background of the chart with Self.AdvGDIPChartView1.Panes[0].Background.
Back to Top
Keene Douglas View Drop Down
New Member
New Member
Avatar

Joined: 04 Aug 2010
Posts: 20
Post Options Post Options   Quote Keene Douglas Quote  Post ReplyReply Direct Link To This Post Posted: 23 Sep 2019 at 9:22pm
Thanks! I was going by the documentation.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down