Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Cold Fusion Graphing - overlay bars in chart

Guest
Mar 05, 2012 Mar 05, 2012

I would like to have 2 bars in one spot, so I can communicate amount done and target. For example if a sales goal is 40/quarter, I want to show the 20 existing sales and the 40 to reach the goal.

I know I can do this with a piechart,  but there are 5 factors I want to show this way - pie charts are simply too big. If it matters, this data will be dynamic.

Thanks in advance,

CB

670
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Deleted User
Mar 05, 2012 Mar 05, 2012

Disregard, just was not thinking abou this in the right way. Here's the code that does what I wanted:

    <cfchart format="flash" xaxistitle="Programs" yaxistitle="ProgramTotals" seriesPlacement="stacked" showLegend="yes" showMarkers="no" chartHeight="200" chartWidth="300">
    <labelStyle orientation="Horizontal"/>
    <cfchartseries type="bar" seriesLabel="Accepted" colorlist="green,blue" >
        <cfchartdata item="MBA" value="#CurrentlistCounts.MBA#">
        <cfchartdata item="AMBA" value="#Cur
...
Translate
Guest
Mar 05, 2012 Mar 05, 2012
LATEST

Disregard, just was not thinking abou this in the right way. Here's the code that does what I wanted:

    <cfchart format="flash" xaxistitle="Programs" yaxistitle="ProgramTotals" seriesPlacement="stacked" showLegend="yes" showMarkers="no" chartHeight="200" chartWidth="300">
    <labelStyle orientation="Horizontal"/>
    <cfchartseries type="bar" seriesLabel="Accepted" colorlist="green,blue" >
        <cfchartdata item="MBA" value="#CurrentlistCounts.MBA#">
        <cfchartdata item="AMBA" value="#CurrentlistCounts.AMBA#">
        <cfchartdata item="CQEMBA" value="#CurrentlistCounts.CQEMBA#">
        <cfchartdata item="EMBA" value="#CurrentlistCounts.EMBA#">
    </cfchartseries>
    <cfchartseries type="bar"  seriesLabel="Seats Remaining" >
        <cfchartdata item="MBA" value="#CurrentlistCounts.MBA_SeatsLeft#">
        <cfchartdata item="AMBA" value="#CurrentlistCounts.AMBA_SeatsLeft#">
        <cfchartdata item="CQEMBA" value="#CurrentlistCounts.CQEMBA_SeatsLeft#">
        <cfchartdata item="EMBA" value="#CurrentlistCounts.EMBA_SeatsLeft#">
    </cfchartseries>
    </cfchart>
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources