In the attached (very simplified) demo of a project I am working on, I add bands to the chart when I load the data to the grid. Problem is, I don't know when I can add the bands: when I add the bands, I need value for Chart1.BottomAxis.Maximum. If I add the bands in OnBeforeDrawChart, Maximum is 0, if I add them in OnBeforeDrawSeries, the Maximum value is available but it is too late to show the bands until it is redrawn.
Any suggestions on how to get the attached demo to work?
Thank you,
Ed Dressel
Bands don't display in grid
-
- Newbie
- Posts: 14
- Joined: Mon Jan 18, 2016 12:00 am
Bands don't display in grid
- Attachments
-
- Adding Bands.zip
- (6.69 KiB) Downloaded 635 times
Re: Bands don't display in grid
Hello,
Updating the Bands at OnBeforeDrawAxes seems to work for me:
Updating the Bands at OnBeforeDrawAxes seems to work for me:
Code: Select all
procedure TForm2.Chart1BeforeDrawAxes(Sender: TObject);
begin
UpdateBands;
end;
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |