Hi there,
I have a Chart, in which bottom axis is connected with a DateTimeIntervalChartSource. (Chart->BottomAxis->Marks->Source->DateTimeIntervalChartSource and Style->smsLabel).
As to the topic How to Use nice Stps to LeftAxis(
http://forum.lazarus.freepascal.org/index.php/topic,34219.0.html) I have made some values in order to have marks to let's say every 5 days. The problem is that if the date range is wide enough it is 'confused'(maybe the mixlength and maxlength ). I need a general solution e.g. per Day, Week, Month. The field DateTimeIntervalChartSource -> Steps is refered to the zoom factor.
I was wondering that if the chart itself can understand that date range to the zoom factor, maybe that can happen as a variable to nice steps.
Let's say that we have a chart that it's bottom axis is from 01/10/2016 to 31/12/2016. I am trying to find that parameter that:
If i choose it in days I want to have marks at 01/10,02/10, 03/10...29/12, 30/12, 31/12.
If i choose it in weeks I want to have marks at 01/10,08/10, 15/10...16/12, 23/12, 30/12.
If i choose it in months I want to have marks at 01/10, 01/11, 01/12.