Re: Style attribute not workin in CF8 CFChart?

2009-10-01 Thread slli...@shayna.com slli...@shayna.com

Just in case anyone else has this problem in the future and finds this via a 
search, I managed to fix it.

I went ahead and moved the xml stylesheet out of the cfsavecontentvariable 
and into a xml file in the same directory.  I then called the xml file via the 
style attribute.

cfchart style=pie.xml  

This solved the issue on my test server.  Why it solved the issue I have no 
idea, but its working now.



~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326800
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Style attribute not workin in CF8 CFChart?

2009-09-30 Thread slli...@shayna.com slli...@shayna.com

Okay, this is a wierd one.


I am currently working on applying an xml style set to a cfchart tag using 
the style= attributes. Locally, this works fine, however when I port the 
chart to the testing server, it breaks with the error, The chart type 
specified in the style is not a supported ColdFusion chart type.  If I comment 
out the style attribute, cfchart works on that server (without all my careful 
styling of course).  I've tried just putting in an empty style, a one line 
style.  It doesn't matter, it still breaks.


I don't have any control over the testing server, however I have been able to 
figure out a few things.

1) Both my local dev environment and the testing server are running CF 8 
Version 8,0,1,195765.


2) The test environment has some things locked out of it, specifically it 
doesn't have a virtual directory to CFIDE (tho I was able to work with the 
server admin and put one in for testing purposes which didn't help). 


3)The ColdFusion8\wwwroot\WEB-INF\cftags\META-INF\taglib.cfld on the testing 
server has the cfchart style attribute implemented the same as on my local dev 
environment.


Any ideas? Any places I should be looking? I'm stumped and would love to get my 
clients off the 10 year old Java Graphing program they are currently using if 
possible.

Code Below

cfsavecontent variable=piestyle
?xml version=1.0 encoding=UTF-8?
pieChart depth=Plain style=Solid angle=0 rim=Thick 
is3D=false altText=#alttext# 

font=Arial-12
  axis type=Category
   labelFormat pattern=#,##0.###/
   parseFormat pattern=#,##0.###/
   groupStyle font=Arial-12
format pattern=#,##0.###/
   /groupStyle
  /axis
  dataLabels placement=Inside background=white font=Arial-11 
foreground=black
   decoration style=Round/
  /dataLabels
  legend spacing=0 placement=Right halign=Left
   decoration style=None/
  /legend
  elements drawShadow=true
   morph stage=Cols/
  /elements
  title valign=Top spacing=25
   insets bottom=-30/
  /title
  decoration foreColor=#908E6B47/
  paint palette=ModernTransluent paint=Plain max=100/
/pieChart
/cfsavecontent

cfchart
font=arial 
fontsize=12
chartheight=#pieChartHeight# 
chartwidth=#pieChartWidth#
title=#pieChartTitle#
showLegend=true 
pieslicestyle=solid 
showborder=yes
seriesplacement=percent 
format=png
style=#piestyle#
cfchartseries 
type=pie 
query=pieseries 
itemcolumn=grouping 
valuecolumn=howmany 
paintstyle=plain 
/cfchart 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326782
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4