|
Well I'm not sure what's in your #attributes.chart_format# but have you
tried just: format="png" I tried this bit of code on MX and it works, on 6.1 it generates corrupt files <cfchart format="png" chartheight="300" chartwidth="600" name="piechart"> <cfchartseries type="pie"> <cfchartdata item="Wicked Beat Sound System" value="328" /> <cfchartdata item="Dj Shadow" value="321" /> <cfchartdata item="Ltj Bukem" value="267" /> <cfchartdata item="Outkast" value="175" /> <cfchartdata item="Fatboy Slim" value="143" /> <cfchartdata item="Deep Forest" value="136" /> <cfchartdata item="Apollo Four Forty" value="129" /> <cfchartdata item="Marco V" value="120" /> <cfchartdata item="Transglobal Underground" value="119" /> <cfchartdata item="Supreme Beings Of Leisure" value="114" /> <cfchartdata item="Juno Reactor" value="112" /> <cfchartdata item="Caf? Del Mar" value="109" /> <cfchartdata item="Jurassic 5" value="107" /> <cfchartdata item="Air" value="102" /> <cfchartdata item="Dj Krush & Toshinori Kondo" value="96" /> </cfchartseries> </cfchart> <cffile file="#ExpandPath('pie_chart_popular_artists.png')#" action="" nameconflict="overwrite" output="#piechart#" /> On my CFMX6 win32 this works fine and generates a valid PNG or JPG file. On my CFMX6.1 win32 this generates a corrupt file for both PNG and JPG. If you let CFMX display it dynamically it works fine for both MX and 6.1 The two files can be downloaded here: http://www.toolmantim.com/pie_chart_popular_artists_6.png http://www.toolmantim.com/pie_chart_popular_artists_61.png Looking at the hexdump of the both files, MX is creating a valid PNG sig but 6.1 is not: MX: 89 50 4e 47 0d 0a 1a 0a 6.1: 3f 50 4e 47 0d 0a 1a 0a http://www.libpng.org/pub/png/spec/iso/#5PNG-file-signature I assume the first byte is probably corrupt for the JPG as well. Any ideas? - tim Gavin Cooney spoke the following wise words on 25/09/2003 3:21 PM EST: --- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] MX Downunder AsiaPac DevCon - http://mxdu.com/ |
- [cfaussie] Re: cfchart on linux Tim Lucas
- [cfaussie] Re: cfchart on linux Gavin Cooney
- [cfaussie] Re: cfchart on linux Gavin Cooney
- [cfaussie] Re: cfchart on linux Tim Lucas
