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