Wp ,i am sorry not to react earlier,
Just in case you don't know if you are on Windows and want to write to the console: Calling "WriteLn" from the gui requires to uncheck the "Win32 gui application" in the "Project options" / "Compiler options" / "Config and target" / "Target-specific options"
i tried that, but the console creen remained black !
I started an other thread in the general forum,which solved the problem in an acceptable way.
But I learned the advantage of using writewln calls instead of memo because one can use it anytime also in units without form.
Disadvantage, however it appeared ,that one has to open and close the file in the same function/procedure.
Your x data are equally spaced, at some predefined intervals (minutes) - is that what you call "bars"?
Oh ,I see ,I need to be more specific about my intentions.
The Y-data which will be displayed in the chart will be based on chosen multiminute time increment.
However not all sizes of time increments will fit exactly between opening and closing time on a day .So i decided that the size of all time increment the day will be kept the same exept the last one. The last timeincrement on a day may be increased to maximum 1.50001 times the choosen time increment.
For x-axis value display this will have no consequenses ; the X-value of all XY data is a “double”value based on the “daysvalue” as in the earlier thread.
Data are collected / available only during a given time interval per day (beginning at "FOpeningTimeArr[]" and ending at "FClosingTimeArr[]", and only on working days (i.e. normally between Mo and Fr, except for some holidays known to the program)
yes
There are two x axes: a coarse one labelled by date, and a fine one labelled by times.
yes
For the display there are these 2 axes. The most important;however, is the most important is the virtual one ,the 'days' variable (see former thread).All chart data will arrive as x,y = days, yvalue.
Labels must not be drawn in the data gaps (time between closingtime of one day and openingtime of the next day, non-working days), i.e. a line series must not show a x gap over the weekend and over night. In a line series, can the last data point of a day be connected with the first data point of the next day?
Yes
Or do you want only the contiguous data of each day be connected?
No
Labels must adapt to zooming and chart resizing. For example, at larger magnification, the label interval should become smaller
yes
Labels must not overlap and must be "nice" numbers (i.e. every 10 minutes, not every 13.5 minutes, or every 2 days, not every 2.5 days)
yes,dateinterval 1 day,
1 week(starting first workday in week,ending last workday in week) ,
1 month(starting first workday in month,ending last workday in month)
time interval 1 min,5 min,10 min,60 min ,120 min
The original reason for the use of Xaxisseries is the requirement to be able to see the xaxis also beyond the current available XY chart data.
By deriving the values by using the crosshair ,it can be a great help with preparation of designing possible projections .
It offers further greater flexibility and accuracy then to base everything on bars .
frederic