A
AndrewJens
Hi,
I'm using the OWC11.ChartSpace control to chart data in an Access
report, and everything is working very well (so far). My problem is not
a 'how to code it', rather a 'can it be coded' strategy question.
Imagine a simple column chart that graphs percentage data (so the
vertical axis scale is 0 to 100) returned in a recordset. Say that
there are two columns on the chart (one representing 40% and the second
representing 80%). The horizontal axis could have anything (e.g. years
2004, 2005). If I use standard DataLabelsCollection code, I can easily
display the percentage as a number just above each of the columns. So
now imagine the first column to have the number 40 just vertically
above it and second column to have the number 80 just vertically above
it. So far so good, and this is all working perfectly.
My requirement is however to display something other than 40 above the
first column. So for example, if the 40% was derived by considering 500
widgets out of a total of 1250 then I would like to display the number
500 just above the first column, and 1000 above the second column.
But I would like to go even further. In some cases, I would like to
display arbitrary text above a column. For example, "500 - suspect" or
"1000 - target reached", etc. The text labels can be returned in any
data-driven way that makes a solution possible - e.g. as another field
in the original recordset, or as entries in an array.
So the question boils down to: can you fake/substitute the labels on a
chart series with the OWC11 control?
Thanks in advance for any assistance/suggestions that anyone can
provide.
I'm using the OWC11.ChartSpace control to chart data in an Access
report, and everything is working very well (so far). My problem is not
a 'how to code it', rather a 'can it be coded' strategy question.
Imagine a simple column chart that graphs percentage data (so the
vertical axis scale is 0 to 100) returned in a recordset. Say that
there are two columns on the chart (one representing 40% and the second
representing 80%). The horizontal axis could have anything (e.g. years
2004, 2005). If I use standard DataLabelsCollection code, I can easily
display the percentage as a number just above each of the columns. So
now imagine the first column to have the number 40 just vertically
above it and second column to have the number 80 just vertically above
it. So far so good, and this is all working perfectly.
My requirement is however to display something other than 40 above the
first column. So for example, if the 40% was derived by considering 500
widgets out of a total of 1250 then I would like to display the number
500 just above the first column, and 1000 above the second column.
But I would like to go even further. In some cases, I would like to
display arbitrary text above a column. For example, "500 - suspect" or
"1000 - target reached", etc. The text labels can be returned in any
data-driven way that makes a solution possible - e.g. as another field
in the original recordset, or as entries in an array.
So the question boils down to: can you fake/substitute the labels on a
chart series with the OWC11 control?
Thanks in advance for any assistance/suggestions that anyone can
provide.