Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
MikerRoo #1
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
-
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... -
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... -
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.... -
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... -
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... -
MikerRoo #2
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
-
prayank #3
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
-
MikerRoo #4
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
-
prayank #5
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
-
MikerRoo #6
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
-
superted #7
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
-
superted #8
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



Reply With Quote

