cfchart clustered bar chart

Ask a Question related to Coldfusion - Getting Started, Design and Development.

  1. #1

    Default cfchart clustered bar chart

    i have a query with the following fields - curYear :Number, pcsa : String,
    rate : Number.

    the data looks like:
    curYear - pcsa - rate
    2003 - east - 4.52
    2003 - west - 4.3
    2003 - central - 5.1
    2004 - east - 3.5
    2004 - west - 4.61
    2004 - central - 3.7

    and so on...

    what i am trying to do, and have had no success with so far, is to create a
    clustered bar chart with the years as the main itemcolumn on the x axis, and
    the pcsa beging the bars(veritcle) on the chart.

    i have tried a number of things, but none of them seem to get the job done.

    this:

    gives me the years going across the bottom, but only on bar for each year....
    no clustered pcsa.

    this:


    <cfchart format="flash" title="PCSA Comparison for #measure#"
    seriesplacement="cluster" sortxaxis="yes">
    <cfoutput query="repYearData" group="pcsa">
    <cfchartseries type="bar" query="repYearData" itemcolumn="curyear"
    valuecolumn="rate"/>
    </cfoutput>
    </cfchart>

    gogl Guest

  2. Similar Questions and Discussions

    1. CFCHART intra-chart animations
      I have a client that wishes to have dynamic charts (self admin-ed) on their site. I would like to use CFCHART to render it as flash, but they want...
    2. can CFCHART be used in a Clustered Envrionment
      You can say that requiring sticky session is not a bug, but truthfully it is. It removes the ability to do Layer 3 load balancing using a database...
    3. (2) CFCHART: Trying to do a date (line) chart
      Using CF7, trying to make a line chart - date on X axis, a value on y axis. Very basic. Couple things. First, the CF docs for charting don't...
    4. cfchart databackgroundcolor for pie chart
      I cannot seem to get the color to change. It's just white. Is this a known bug?
    5. CFCHART Bar Chart values - MX6
      Hi Is is possible In MX6 to get a CFCHART bar chart to display the values for each bar, either on the top of the bar or on the bar itself, without...
  3. #2

    Default Re: cfchart clustered bar chart

    doh!. posted instead of previewed.
    anyway.
    this first bit of code (missing from the original message) should have been:

    <cfchart format="flash" title="PCSA Comparison for #measure#"
    seriesplacement="cluster" sortxaxis="yes">
    <cfchartseries type="bar" query="repYearData" itemcolumn="curyear"
    valuecolumn="rate"/>
    </cfchart>

    the second bit of code... the one showing in the original message show s the
    years, but obviously with all of the bars in it for all the pcsa.

    i've tried some queries of queries to loop thru, and have gotten close, but i
    am now thinking that i am missing something, because it seems that it should be
    simpler than this.


    gogl Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139