Date in bar series X-axis
Posted: Fri Jan 26, 2007 9:19 am
Hi,
when using a bar series graph, we display the date in the horizontal axis. This works fine when multiple dates are displayed (more than one bar), but when only a single bar is displayed, no date is shown (just something like 00-00-00). The VB code seems to be fine, in both cases the series .datetime property is set to 'True', and there doesn't really seem to be more we can do. So I was thinking this could be a bug in our TeeChart program. Version info: TeeChart Pro v7.0.0.6.
some code extractions:
.TChart1.Axis.Bottom.Increment = .TChart1.GetDateTimeStep(dtOneDay)
...
For i = 0 To .SeriesCount - 1
.Series(i).DataSource = rsDBHistoric
.Series(i).YValues.ValueSource = rsDBHistoric.Fields(i + 1).Name
.Series(i).XValues.ValueSource = rsDBHistoric.Fields(0).Name
.Series(i).XValues.DateTime = True
.Series(i).Name = "CS" & (i + 1)
Next
...
Thanks in advance for your answer. If you need more info, please let me know.
Tom.
when using a bar series graph, we display the date in the horizontal axis. This works fine when multiple dates are displayed (more than one bar), but when only a single bar is displayed, no date is shown (just something like 00-00-00). The VB code seems to be fine, in both cases the series .datetime property is set to 'True', and there doesn't really seem to be more we can do. So I was thinking this could be a bug in our TeeChart program. Version info: TeeChart Pro v7.0.0.6.
some code extractions:
.TChart1.Axis.Bottom.Increment = .TChart1.GetDateTimeStep(dtOneDay)
...
For i = 0 To .SeriesCount - 1
.Series(i).DataSource = rsDBHistoric
.Series(i).YValues.ValueSource = rsDBHistoric.Fields(i + 1).Name
.Series(i).XValues.ValueSource = rsDBHistoric.Fields(0).Name
.Series(i).XValues.DateTime = True
.Series(i).Name = "CS" & (i + 1)
Next
...
Thanks in advance for your answer. If you need more info, please let me know.
Tom.