I have an application where events are shown in a Gant graph. I print the events in a list and from the graph.
When scrolling and zooming the graph the bottom axis (date) changes accordingly.
I would like to retrieve the max/min dates from the bottom axis so that the printed lists reflects the same time span as the graph.
Any idea how to do this?
Axis value from chart
Re: Axis value from chart
Hi asgo,
The properties are Chart1.Axes.Bottom.Minimum, Chart1.Axes.Bottom.Maximum, Chart1.Axes.Left.Minimum and Chart1.Axes.Left.Maximum. For example:
The properties are Chart1.Axes.Bottom.Minimum, Chart1.Axes.Bottom.Maximum, Chart1.Axes.Left.Minimum and Chart1.Axes.Left.Maximum. For example:
Code: Select all
Chart1.Draw;
Caption:='Bottom min: '+FloatToStr(Chart1.Axes.Bottom.Minimum)+' Bottom max: '+FloatToStr(Chart1.Axes.Bottom.Maximum)+
' Left min: '+FloatToStr(Chart1.Axes.Left.Minimum)+' Left max: '+FloatToStr(Chart1.Axes.Left.Maximum);
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: Axis value from chart
Thank you Yeray, that was exactly what I needed.
asgo
asgo