Re: [Lazarus] Using a DateTimeIntervalChartSource in TAChart
On 23 September 2014 23:55, Werner Pamler wrote: > Where can I find the Intervals.Min and MaxLength properties? >>> >> > MinLength and MaxLength are sub-properties of the "Params" of the > DateTimeIntervalChartSource. > Sorry, I confused it with the property "Intervals" of the Axis... > Perfect, thanks Werner, that's made a massive difference. Richard -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Using a DateTimeIntervalChartSource in TAChart
Where can I find the Intervals.Min and MaxLength properties? MinLength and MaxLength are sub-properties of the "Params" of the DateTimeIntervalChartSource. Sorry, I confused it with the property "Intervals" of the Axis... -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Using a DateTimeIntervalChartSource in TAChart
> > > > * You may want to play with its properties a bit to optimize its output. > For > example increase Intervals.MinLength and/or MaxLength to avoid overlapping > of labels. > * To be honest I don't fully understand the effect of the Steps property. > I have the > feeling that you have to turn off those options which you don't want to > have > in the labels. > Thanks very much Werner, that was a great help. Where can I find the Intervals.Min and MaxLength properties? Richard -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Using a DateTimeIntervalChartSource in TAChart
>> I am trying to create a line graph where the X axis is a zoomable >> TDateTime>> value and I believe that I need to use a >> DateTimeIntervalChartSource>> However, I cannot seem to work out how to add >> values to it. You don't have to. The DateTimeIntervalChartSource gets the values from the axis it is assigned to. Here's what you have to do: * Set up your chart as usual * Add a TDateTimeIntervalChartSource. If you want to have the date/times along the x axis select Chart.BottomAxis.Marks.Source to point to it. Also, set Chart.BottomAxis.Marks.Style to smsLabel. In general, use the axis at which you want to have the date/times. * You may want to play with its properties a bit to optimize its output. For example increase Intervals.MinLength and/or MaxLength to avoid overlapping of labels. * To be honest I don't fully understand the effect of the Steps property. I have the feeling that you have to turn off those options which you don't want to have in the labels. --- Alle Postfächer an einem Ort. Jetzt wechseln und E-Mail-Adresse mitnehmen! Rundum glücklich mit freenetMail -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Using a DateTimeIntervalChartSource in TAChart
Hi All, I am trying to create a line graph where the X axis is a zoomable TDateTime value and I believe that I need to use a DateTimeIntervalChartSource However, I cannot seem to work out how to add values to it. Could somebody give me any pointers please? Thanks PS I've have looked at the "axis" demo under the TAChart components, which does display a DateTime on the bottom axis, however, it didn't seem clear to me on how that graph actually got it's data. Thanks, as always, in advance. Richard -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus