X and Y offset do not work for Pie charts in CFChart

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

  1. #1

    Default X and Y offset do not work for Pie charts in CFChart

    X and Y offset do not work for 3D pie charts. This is needed to tweek the
    appearance (mainly thickness) to my boss' satisfaction. I've reported this
    before but, here, I am posting code that demonstrates the problem. Run the
    attached template. You will see the aspect ratio changing for the various
    plot types. But, there is no change for pie chart.

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>CFChart Bug Demo</title>
    </head>

    <!--- Gin up some test data, the datasourceless way.
    Note that preferred method, pure SQL, will not work without a valid
    datasource. Q of Q requires a "from" statement.
    --->
    <cfscript>
    qGraphData = QueryNew ("FoodItem,Qty", "VarChar,Integer");
    QueryAddRow (qGraphData, 3);
    QuerySetCell (qGraphData, "FoodItem", "Apples", 1);
    QuerySetCell (qGraphData, "FoodItem", "Bananas", 2);
    QuerySetCell (qGraphData, "FoodItem", "Coconuts", 3);
    QuerySetCell (qGraphData, "Qty", 10, 1);
    QuerySetCell (qGraphData, "Qty", 20, 2);
    QuerySetCell (qGraphData, "Qty", 30, 3);
    </cfscript>

    <!--- Custom local Plot function --->
    <cffunction name="LclPlotFunction" output="true">
    <cfargument name="fXandY_Offset" type="numeric" required="yes">
    <cfargument name="sPlotType" type="string" required="no"
    default="pie">

    <cfchart
    format = "png"
    chartheight = "150"
    chartwidth = "150"
    show3d = "yes"
    xoffset = "#fXandY_Offset#"
    yoffset = "#fXandY_Offset#" <!--- There are documentation
    errors here. Negative values have no effect and docs refer to "left" and
    "right". --->
    showlegend = "no"
    showmarkers = "no"
    showYGridlines = "no"
    pieslicestyle = "solid"
    >
    <cfchartseries
    type = "#sPlotType#"
    query = "qGraphData"
    itemcolumn = "FoodItem"
    valuecolumn = "Qty"
    dataLabelStyle = "none"
    >
    </cfchart>
    </cffunction>

    <body>
    <!--- Now plot a couple of styles at various offsets. See how pie chart
    offset does not work. --->
    <h1> Notice how chart offset works for some types but not pie chart. </h1>
    <cfset sChartStyleList = "bar,line,pie,cone">

    <cfloop index="sChartStyle" list="#sChartStyleList#">
    <p>
    <cfloop index="fOffset" from="-1.0" to="1.0" step="0.4">
    <cfset LclPlotFunction (fOffset, sChartStyle)>
    </cfloop>
    </p>
    </cfloop>
    </body>
    </html>

    MikerRoo Guest

  2. Similar Questions and Discussions

    1. extranet demo doesnt work for quick charts to flashor pdf
      I'm having the same problem/error. And when I tried to open up the cfr files in Report Builder I got errors saying those are invalid files. What's...
    2. CFCHART: How to work with WebCharts...
      I'm testing making charts, starting with a line chart with dates on the X axis. After some help from a member here I got a nice(ish) chart. I used...
    3. How do we get needed XML styles to work with CFChart
      The Webcharts 3D designer (shipped with Coldfusion) has exactly the kind of chart we need (Statistical histogram). Great! :D See the XML, below....
    4. Grid Offset Possible?
      Hello everyone I work at a blister packaging company and the owner asked me to create die lines for graphic cards we order. I need to use a specific...
    5. strrpos and offset?
      Hi, I'm using PHP 4.3.4 the docs at: http://uk.php.net/manual/en/function.strrpos.php tells me that strrpos can be passed an offset as the...
  3. #2

    Default Re: X and Y offset do not work for Pie charts in CFChart

    Although this issue is now the least of the problems we are having with CFChart, this post was requested by
    Macromedia personnel.
    Still no response...



    MikerRoo Guest

  4. #3

    Default Re: X and Y offset do not work for Pie charts in CFChart

    Hi Miker

    We are still looking into your suggestion. Please note that this is not a bug,
    we do not support offsets for 3d Pie charts. This is an enhancement, which we
    would be very pleased to incorporate in our cfcharts though. For this purpose,
    it would be very helpful to us if you could point to some sample graphs that
    display the offset property that you are talking about in 3d pie charts.

    Regards
    Prayank

    prayank Guest

  5. #4

    Default Re: X and Y offset do not work for Pie charts in CFChart

    If this is not supported, it should be documented that way (It's either a bug
    or a documentation oversight). This is not worth a feature request.
    Better to fix the other bugs or design limits with CFCharts. You cannot see
    any of my sites, they are behind our firewall. Run the code I attached. See
    how the aspect ratio changes for some types? I don't see why this is so hard
    to grasp. The current 3d pie charts have an offset (think aspect ratio).
    It's just fixed. You can see a mockup of what changing offsets should do here:
    [url]http://www.geocities.com/mrfg8todwen16120@sbcglobal.net/index.htm[/url] -- MikeR

    MikerRoo Guest

  6. #5

    Default Re: X and Y offset do not work for Pie charts in CFChart

    Hi MikeR

    We have created an enhancement request for this feature. Thanks for helping us improve Coldfusion.

    Regards
    Prayank
    prayank Guest

  7. #6

    Default Re: X and Y offset do not work for Pie charts in CFChart

    Thanks, Prayank. I would now rate this a low priority (as long as it's
    documented that it's not supported). I would much rather see Macromedia
    provide support for all the styles in the WebCharts 3D designer -- especially
    the statistical styles. Thanks, -- MikeR

    MikerRoo Guest

  8. #7

    Default Re: X and Y offset do not work for Pie charts in CFChart

    I have an issue with CF Chart where when I click on a bar to drill down to a more detailed graph and error is thown. This works in CFMX 6.1 but not in CF7. I'll post the error msg.
    superted Guest

  9. #8

    Default Re: X and Y offset do not work for Pie charts in CFChart

    I have an issue with CF Chart where when I click on a bar to drill down to a more detailed graph an error is thown. This works in CFMX 6.1 but not in CF7. I'll post the error msg.
    superted 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