I've already looked at that page, and the related MX7 and 8 pages and they do not make it clear how to achieve what I'm looking to do.
Main Topics
Browse All TopicsI was to create a bar chart that shows the number of occurrences of a date broken down by class. My result set has three columns (Count, Date, Class)
So, I should have a series for each class type (There are multiple and not every date will have the same classes). Based on the sample data below the chart should show:
For the first date I will only have a bar representing the "C" class with a value of 1.
For the second date I will only have a bar representing the "P" class with a value of 4.
For the third date I will have two bars, one for each class ("P", "C") with the values of 3 and 1.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
The problem with that is that I'd need a separate series for each class type and I don't know that until runtime. This is a rather simple graph in Access or Excel, why would it be so difficult in ColdFusion?
Can't I produce the graph I'm looking for with the dataset that I already have?
See attached example.
Well, this isn't Excel ;-) Web applications have a lot more to contend with than a simple desktop app.
But I don't see what the problem is.. if you chart each class in a separate cfchartseries, it comes out perfectly. If you don't want to create separate queries, you could just use a grouped cfoutput.
<!--- MUST order by "Class" first or output will not work ! --->
<cfquery name="qChartData" ....>
SELECT ..... FROM ....
ORDER BY Class
</cfquery>
<cfchart>
<cfoutput query="qChartData" group="Class">
<cfchartseries type="bar">
<cfoutput>
<cfchartdata item="#MonthYear#" value="#CountOfDate#">
</cfoutput>
</cfchartseries>
</cfoutput>
</cfchart>
I got #2 figured out by using the following tag element.
<cfchartseries type="bar" serieslabel="#Class#">
As for #1, I found an erticle online that discusses this issue.
http://www.coldfusionjedi.
I'm looking it over now.
> http://www.coldfusionjedi.
Hm, I was thinking interpolation .. but that might work better.
Business Accounts
Answer for Membership
by: pravinasarPosted on 2009-10-19 at 10:05:22ID: 25606944
Look at the link.
coldfusion /6.1/htmld ocs/ graphi 10.htm
http://livedocs.adobe.com/