Skip to main content
Known Participant
March 28, 2009
Question

cfchart question

  • March 28, 2009
  • 2 replies
  • 663 views
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.
    This topic has been closed for replies.

    2 replies

    Inspiring
    March 31, 2009
    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.
    Participant
    March 28, 2009
    You may want to consider using the "url" attribute in the cfchart.
    cfchart livedocs

    Matthew Vass
    QA Analyst
    mvass@hostmysite.com
    HostMySite.com
    Known Participant
    March 29, 2009
    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.