Charting Problem

  • Thread starter James 'Smiler' Farrer
  • Start date
J

James 'Smiler' Farrer

Hi,

I want to re-produce the graph shown here
(http://www.smiler.me.uk/graph.gif) using the office web components.

I currently have a recordset with the site, month, and frequency.

I can plot site to frequency fine, but not incorporating the dates.

Any assistance appreciated.

Regards

James
 
J

James 'Smiler' Farrer

Ok I have done this and get a blank graph....

Set oChartSpace = CreateObject("OWC.Chart")
Set goConstants = oChartSpace.Constants
set c = oChartSpace.Constants
oChartSpace.Border.Color = goConstants.chColorNone
set oChartSpace.DataSource = objRS
Set oChart = oChartSpace.Charts.Add
oChart.Type = c.chChartTypeBarClustered
FormatChart oChart, "Stoppage Duration By " + Grouping, Grouping, "Total
Duration (hrs)", "#,##.##"
oChart.SetData chDimSeriesNames, 0, Grouping
oChart.SetData chDimCategories, 0, "KeyDate"
oChart.SetData chDimValues, 0, "Duration"

Grouping is another db field loaded from a different query....
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top