Search found 7 matches

by Dave C.
Wed Feb 11, 2009 3:29 pm
Forum: VCL
Topic: Dividing a day into 8 hours/three time periods
Replies: 2
Views: 3514

Narcis,

Perfect! I used the DateTimeStep[dtOneDay]/3;

Thanks!

Best regards,
Dave.
by Dave C.
Wed Feb 11, 2009 2:13 pm
Forum: VCL
Topic: Dividing a day into 8 hours/three time periods
Replies: 2
Views: 3514

Dividing a day into 8 hours/three time periods

Hello, I want to divide a day into three equal time periods to represent three shifts per day, that is, an increment of “dtEightHours”. There is a dtSixHours and a dtTwelveHours, but an eight hour interval is not available. I tried a guess using Graph.Axes.Bottom.Increment := EncodeTime(8,0,0); but ...
by Dave C.
Mon Feb 09, 2009 7:00 pm
Forum: VCL
Topic: Scrolling one date at a time
Replies: 9
Views: 9318

Yeray, Thanks! I have corrected the problem with the MaxPointsPerPage and the bars are now drawing correctly. I gave up trying to use TChartScrollBar as I couldn’t get it to work with the dates. Using your ideas above, I added a regular scrollbar and added: procedure TForm1.ScrollBar1Change(Sender: ...
by Dave C.
Thu Feb 05, 2009 4:05 pm
Forum: VCL
Topic: Scrolling one date at a time
Replies: 9
Views: 9318

Hi Yeray,

I have posted ChartExample.zip to your Upload Page. I included two BMPs of the graph when Automatic is set to true (correct graph) and when Automatic is set to false (incorrect graph).

Thanks,
Dave.
by Dave C.
Thu Feb 05, 2009 2:29 pm
Forum: VCL
Topic: Scrolling one date at a time
Replies: 9
Views: 9318

Yeray, Thanks for your help. I am sure it is something I am missing in a property somewhere. If Chart1.Axes.Bottom.Automatic is true, then the bars draw correctly side by side. If I set Automatic to false so that I can scroll, the bars are incorrect – they overlap and stack onto one another. I have ...
by Dave C.
Wed Feb 04, 2009 6:52 pm
Forum: VCL
Topic: Scrolling one date at a time
Replies: 9
Views: 9318

Thank you for the quick response. That was what I was looking for. I noticed that when you turn off “Automatic”, bars that are added using Series1.Add (x,’’,clr) are not in proportion and the more bars you add the wider each bar gets. Is there another setting such as Automatic that will keep the cor...
by Dave C.
Wed Feb 04, 2009 3:55 pm
Forum: VCL
Topic: Scrolling one date at a time
Replies: 9
Views: 9318

Scrolling one date at a time

Hello, I am new to TChart so this may be a simple question to answer. I have a bar graph with dates along the x axis and a TChartScrollBar. When I scroll the graph using the arrows on the scroll bar the graph moves one page at a time. I would like to move just one date (data point) at a time. How ca...