troubleshooting Question

Advanced stacked cfchart over time

Avatar of Stoke
Stoke asked on
Web ServersColdFusion Language
2 Comments1 Solution1360 ViewsLast Modified:
I have a stacked chart. It shows responses to a set of ten questions taken last month. Each question gets a stacked bar (showing the values for four possible answers). This works without a problem and the code is shown below. Responses for the same set of questions have been taken for this month. I would like to show the results for last month (stacked) next to this month (stacked), so the results for question last month are visible just behind the results for this month. Is this possible and what do I need to add, please?

      <cfchart
            xaxistitle="Question"
            yaxistitle="Answers"
            show3d="true"
            title="Answers"
            showlegend="true"      
            seriesplacement="stacked"
            > 
            <cfchartseries type="bar"
                  query="qCount"
                  itemcolumn="Question"
                  valuecolumn="disagree"
                  serieslabel="Disagree"      >
            <cfchartseries type="bar"
                  query="qCount"
                  itemcolumn="Question"
                  valuecolumn="Sdisagree"
                  serieslabel="Strongly Disagree"      >
            <cfchartseries type="bar"
                  query="qCount"
                  itemcolumn="Question"
                  valuecolumn="agree"
                  serieslabel="Agree">
            <cfchartseries type="bar"
                  query="qCount"
                  itemcolumn="Question"
                  valuecolumn="Sagree"
                  serieslabel="Strongly Agree" >
            </cfchartseries>
      </cfchart>
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 2 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros