I have exactly the same problem, the only difference between my code and yours is this:
Code:
'set the Chartspace's data source to the Recordset and add the
'SalesPerson field for series names, the Month field for the chart's
'categories and the Sales field for the chart's values
set m_cspace.DataSource = m_rs
objChart.SetData c.chDimSeriesNames, 0, "debilt_hirlam"
objChart.SetData c.chDimCategories, 0, m_station & "_hirlam.fictievedatum"
objChart.SetData c.chDimValues, 0, Array(m_station & "_hirlam.fictievedatum", m_station & "_xhirlam.fictievedatum")
'add a chart title and format the title
objChart.HasTitle = True
objChart.Title.Caption = m_station & " van " & m_dag & "-" & m_maand & "-" & m_jaar & " tot " & m_dag2 & "-" & m_maand2 & "-" & m_jaar2 & " (+" & m_vp & " )"
set fnt = objChart.Title.Font
fnt.Name = "Tahoma"
fnt.Size = 10
fnt.Bold = True
for each ax in objChart.Axes
ax.HasTitle = True
if ax.Type = c.chCategoryAxis then
ax.Title.Caption = "datum"
set fnt = ax.Title.Font
fnt.Name = "Tahoma"
fnt.Size = 8
fnt.Bold = True
else
ax.Title.Caption = "temperatuur in °C"
set fnt = ax.Title.Font
fnt.Name = "Tahoma"
fnt.Size = 8
fnt.Bold = True
end if
next
I also tried something like this:
Code:
'set the Chartspace's data source to the Recordset and add the
'SalesPerson field for series names, the Month field for the chart's
'categories and the Sales field for the chart's values
set m_cspace.DataSource = m_rs
objChart.SetData c.chDimSeriesNames, 0, "debilt_hirlam"
for each objSeries in objChart.SeriesCollection
objSeries.SetData c.chDimCategories, 0, m_station & "_hirlam.fictievedatum"
objSeries.SetData c.chDimValues, 0, m_station & "_hirlam.t2m"
next
But nothing seems to work, I only get errors, and if I get no error I get no line, sometimes even no record in the legend
Does anyone know a good solution, I spend hours searching the web for something to help...