Re: cfchart woes - vertical labels like 3.70333333

2007-02-12 Thread Jake Pilgrim
I have ran into this before... Here's the fix I used:

cfchart gridlines=11 scaleFrom=0 scaleTo=100   /cfchart

This will display a graph with each gridLine representing 10. 

The trick here is that scaleTo / (gridlines + 1) should equal an integer value. 
You add one to the gridlines value for the baseline (0) gridlline. 

Does that make sense? Hope that helps. 

~|
Upgrade to Adobe ColdFusion MX7 
Experience Flex 2  MX7 integration  create powerful cross-platform RIAs 
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:269506
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: cfchart woes - vertical labels like 3.70333333

2007-02-12 Thread Ryan Stille
AJ that was very helpful.  It worked great until I changed my gridLines 
value from 10 to something else.  But it led me to discover this formula 
that seems to always produce whole number labels -

scaleTo must be evenly divisible by (gridLines - 1)

Thanks!
-Ryan

AJ Mercer wrote:
 From memory, when I was messing around with this, the scale needs to be a
 multiple of  9
 So work out what the max value is and then get the next multipe of 9
 so if the max val is 88 - set the top scale to 90

 Hope this helps.


 On 2/10/07, Ryan Stille [EMAIL PROTECTED] wrote:
   
 I am converting some charts from cf5 (cfgraph) to CFMX7 (cfchart).  My
 simple bar graphs that looked great in CF5 are not looking so good in
 CF7.  My main problem is the y axis grid labels showing up as 3.703,
 7.407, etc.  Instead of 5,10,15 like they were before.  I've been
 looking through the docs but I must be missing something.  Here is what
 the new chart looks like:
 http://img408.imageshack.us/my.php?image=chart1wv2.jpg

 Here is what the old one looked like:
 http://img408.imageshack.us/my.php?image=chart2fp5.jpg

 I've played around with the gridLines and scaleTo but that doesn't seem
 to help.

 Thanks,
 -Ryan




 

 

~|
Upgrade to Adobe ColdFusion MX7 
Experience Flex 2  MX7 integration  create powerful cross-platform RIAs 
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:269507
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: cfchart woes - vertical labels like 3.70333333

2007-02-11 Thread Pete Ruckelshaus
I had the same issue and ended up using a bit of an old fashioned method:

http://www.beerology.com/ars/

It works.

Pete

On 2/9/07, Ryan Stille [EMAIL PROTECTED] wrote:
 I am converting some charts from cf5 (cfgraph) to CFMX7 (cfchart).  My
 simple bar graphs that looked great in CF5 are not looking so good in
 CF7.  My main problem is the y axis grid labels showing up as 3.703,
 7.407, etc.  Instead of 5,10,15 like they were before.  I've been
 looking through the docs but I must be missing something.  Here is what
 the new chart looks like:
 http://img408.imageshack.us/my.php?image=chart1wv2.jpg

 Here is what the old one looked like:
 http://img408.imageshack.us/my.php?image=chart2fp5.jpg

 I've played around with the gridLines and scaleTo but that doesn't seem
 to help.

 Thanks,
 -Ryan



 

~|
Upgrade to Adobe ColdFusion MX7 
Experience Flex 2  MX7 integration  create powerful cross-platform RIAs 
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:269484
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: cfchart woes - vertical labels like 3.70333333

2007-02-11 Thread AJ Mercer
From memory, when I was messing around with this, the scale needs to be a
multiple of  9
So work out what the max value is and then get the next multipe of 9
so if the max val is 88 - set the top scale to 90

Hope this helps.


On 2/10/07, Ryan Stille [EMAIL PROTECTED] wrote:

 I am converting some charts from cf5 (cfgraph) to CFMX7 (cfchart).  My
 simple bar graphs that looked great in CF5 are not looking so good in
 CF7.  My main problem is the y axis grid labels showing up as 3.703,
 7.407, etc.  Instead of 5,10,15 like they were before.  I've been
 looking through the docs but I must be missing something.  Here is what
 the new chart looks like:
 http://img408.imageshack.us/my.php?image=chart1wv2.jpg

 Here is what the old one looked like:
 http://img408.imageshack.us/my.php?image=chart2fp5.jpg

 I've played around with the gridLines and scaleTo but that doesn't seem
 to help.

 Thanks,
 -Ryan



 

~|
Upgrade to Adobe ColdFusion MX7 
Experience Flex 2  MX7 integration  create powerful cross-platform RIAs 
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:269485
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


cfchart woes - vertical labels like 3.70333333

2007-02-09 Thread Ryan Stille
I am converting some charts from cf5 (cfgraph) to CFMX7 (cfchart).  My 
simple bar graphs that looked great in CF5 are not looking so good in 
CF7.  My main problem is the y axis grid labels showing up as 3.703, 
7.407, etc.  Instead of 5,10,15 like they were before.  I've been 
looking through the docs but I must be missing something.  Here is what 
the new chart looks like:  
http://img408.imageshack.us/my.php?image=chart1wv2.jpg

Here is what the old one looked like: 
http://img408.imageshack.us/my.php?image=chart2fp5.jpg

I've played around with the gridLines and scaleTo but that doesn't seem 
to help.

Thanks,
-Ryan



~|
Upgrade to Adobe ColdFusion MX7 
Experience Flex 2  MX7 integration  create powerful cross-platform RIAs 
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:269365
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4