cfchart with pie percents

Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default cfchart with pie percents

    Here's an example of the code....


    <cfchart format="flash" labelformat="percent" >
    <cfchartseries type="pie" datalabelstyle="value" query="qMsg2"
    itemcolumn="realname" valuecolumn="times" serieslabel="Times"></cfchartseries>

    </cfchart>



    BTW, I work at a web house where we've employed pie charts with percents many
    times. It is tied to the MX 7 upgrade. Any answers out there?

    eliasobr Guest

  2. Similar Questions and Discussions

    1. cfchart on cf mx 7
      Hello Until today, my cfchart tag has been working fine. However, today when creating a cfchart im getting this error in the application.log...
    2. cfchart
      I have some financial templates where I use cfchart. If I use the png or jpg format the pages take about 27 seconds to load. If I use the flash...
    3. CFChart as JPG
      Greetings, I am producing a chart (JPG) for people to use an a document, however you can't right click and save Image. Is there a way to do this....
    4. CF7 cfchart
      Can a Gantt chart be created with version 6.1?
    5. Cfchart in Mx7
      Hello, I've installed Coldfusion Mx7 mainly for the PDF generation. The problem is for the chart I've created in previous version. An example is...
  3. #2

    Default Re: cfchart with pie percents

    You need to post some actual data. This may not be a coldfusion problem at
    all. For example, if the data is (33.3%, 33.3%, 33.4%), this could be
    displayed as 33%, 33%, and 33% -- which does not add up to 100%.

    MikerRoo Guest

  4. #3

    Default Re: cfchart with pie percents

    OK, I understand what you're saying. I didn't present my message very clearly.
    What I was trying to say is that it doesn't even come close to adding up to
    100%; You'll have some that are 1200%, 1000%, 500%, etc. This was working
    just fine before the CF 7 upgrade. Here is another example (which is with a
    past company). [url]http://www.selfoodsales.com/subCobr/getStarted.cfm[/url]

    I would show the current pages, but they are behind a firewall which I can't
    control. Anyway, poing being, I (as well as other developers) had pie -
    percents working just fine until the CF MX 7 upgrade, and now it is spitting
    out these undesirable results. Your thoughts?




    eliasobr Guest

  5. #4

    Default Re: cfchart with pie percents

    Sorry, I've had my own problems with CFChart. I guess I was hoping this was an
    easy one. Anyway, it looks like you are sending values and expecting them to
    be converted to percents? For example, on your example page, 2000 units is
    about 33% and that looks to be about the size of the pie slice. So, you're
    using labelFormat='Percent' and that used to work but doesn't now? If that is
    true, then it sounds like a bug to me. You should file a bug report. I know
    that the Webcharts3D engine supports $(colPercent) -- which does what you
    probably want. You can use the Webcharts3D designer to create an XML style.
    Set the 'Datalabels' property to 'pattern' and then use a pattern of
    '$(colPercent)'. The wecharts designer is in your CF install directory usually
    'C:\CFusionMX7\charting\webcharts.bat'. Good Luck. -- MikeR

    MikerRoo Guest

  6. #5

    Default Re: cfchart with pie percents

    Cool, that actually corrected the problem! The webcharts designer was easy to use, and was flexible enough to allow for customized attributes. Thanks a bunch. Cheers.
    eliasobr 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