Skip navigation
Currently Being Moderated

Stacked Bar Chart Issue

Mar 22, 2012 7:55 AM

Tags: #chart #bar #stacked

Hello, with ColdFusion 8 this code produces duplicate stacked bars. The two chartseries are required to produce the stacked affect. One bar stack is labeled "Programs" and the second is labeled "Enrolled Programs". They are identical and both contain the data I wish to display so obviously I only want one of them. Suggestions? Thanks.

 

<cfchart format="flash" showlegend="yes"

      chartheight="350"

      chartwidth="350"

      showxgridlines="no"

      showygridlines="no" 

      showborder="no"

      fontsize="12"

      fontbold="no"

      fontitalic="no"

      xaxistitle=""

      yaxistitle="Count"

      show3d="yes"

      rotated="no"

      sortxaxis="no"

      showmarkers="yes" seriesplacement="stacked">

      <cfchartseries type="bar" query="qAllProgramsCount" seriescolor="blue" itemcolumn="title" valuecolumn="prgCount" serieslabel="Programs" >

      <cfchartseries type="bar" query="qEnrolled" seriescolor="red" itemcolumn="title" valuecolumn="prgCount" serieslabel="Enrolled Programs" >  

</cfchart>

 
Replies
  • Currently Being Moderated
    Apr 13, 2012 8:02 AM   in reply to berniemiller

    berniemiller wrote:

     

    It never fails that as soon as I post a question I figure it out...anyway, it was differenciating on the "title" in my two queries. I made them the same and viola, one bar! Hope this helps someone.

    It surely will, if you mark the question as answered!

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points