Re: [Lazarus] Using a DateTimeIntervalChartSource in TAChart

2014-09-24 Thread Richard Mace
On 23 September 2014 23:55, Werner Pamler werner.pam...@freenet.de 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

2014-09-23 Thread werner . pamler
 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


Re: [Lazarus] Using a DateTimeIntervalChartSource in TAChart

2014-09-23 Thread Richard Mace



 * 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

2014-09-23 Thread Werner Pamler

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


[Lazarus] Using a DateTimeIntervalChartSource in TAChart

2014-09-22 Thread Richard Mace
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