Discussion:
cfchart question
(too old to reply)
New York Guy
2009-03-28 19:30:54 UTC
Permalink
I have a bar chart (two bars) where the x axis is the date of the week and the
y axis the quantity.

I have one cfchart tag and two cfchartseries tags inside. One is for organge
and the other is for apples.

The chart displays fine. What I need to do now is create a drilldown page for
each bar. If I click on the orange bar for a particular day, then I need to
display the detailed report behind that bar. If I click the bar for apple for a
particular day, then I need to display the detailed report behind that bar.

Since I only have one cfchart, the url to pass would be
reportname.cfm?date=$itemlabel$, but how would I know that the apple bar was
selected and pass apple, as opposed to orange bar, and pass the orange variable
?

Right now, my report displays the data for both organges and apples combined,
for the particualr day. I need to separate them based on which bar was selected.
tech603
2009-03-28 21:05:54 UTC
Permalink
You may want to consider using the "url" attribute in the cfchart.
livedocs]http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=Tags_c_05.html
New York Guy
2009-03-29 22:55:03 UTC
Permalink
I am using the url in cfchart. I am calling the report and passing the x axis
variable, which is the date. But since I have two bars, how would I pass the
apple bar/variable as opposed to the orange bar/variable ? Right now,when I
click on either bar, the report runs for both apples and oranges and I need the
report separated based on which bar is selected. That is what i do not know how
to do.
Azadi
2009-03-30 00:50:08 UTC
Permalink
specify seriesLabel attribute in each of your <cfchartsereis> tags if
you do not already (i.e. one would be "Apples" and another "Oranges"),
and then pass the $SERIESLABEL$ in the url along with $ITEMLABEL$:
reportname.cfm?date=$itemlabel$&fruit=$serieslabel$

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/
gitobu
2009-03-31 21:55:05 UTC
Permalink
Just like Azadi replied but watch out for spelling on the serieslabel
attribute. This attribute is generally used for description but if you have to
pass it on the URL the spelling has to match the value you need (fruit in your
case) in your database.

Loading...