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.
Date in bar series X-axis
Hi tsoffers,
the following simple example code works fine with latest activex version (v7.0.1.3):
If the problem persists could you please send us a simple example project we can run "as-is" to reproduce the problem here?
You can post your files at news://www.steema.net/steema.public.attachments newsgroup or you can send them via our new upload page at http://www.steema.net/upload/
the following simple example code works fine with latest activex version (v7.0.1.3):
Code: Select all
Private Sub Form_Load()
TChart1.AddSeries scBar
TChart1.AddSeries scBar
TChart1.Series(0).FillSampleValues 6
TChart1.Series(1).FillSampleValues 6
TChart1.Series(0).XValues.DateTime = True
TChart1.Series(1).XValues.DateTime = True
TChart1.Axis.Bottom.Increment = TChart1.GetDateTimeStep(dtOneDay)
TChart1.Legend.CheckBoxes = True
End Sub
You can post your files at news://www.steema.net/steema.public.attachments newsgroup or you can send them via our new upload page at http://www.steema.net/upload/
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Tom,
This is exactly what we tried to achieve enabling legend checkboxes in the example Yeray posted. The example code works fine here even when only one series is visible in the chart.
Can you please test if the code snippet below works fine at your end?
Thanks in advance.
This is exactly what we tried to achieve enabling legend checkboxes in the example Yeray posted. The example code works fine here even when only one series is visible in the chart.
Can you please test if the code snippet below works fine at your end?
Thanks in advance.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |