House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Search cf-talk

July 04, 2009

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
       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   

Home / Groups / ColdFusion Talk (CF-Talk)

charts in pdf's

Author:
Tony
12/02/2008 12:16 PM

                <cfchart format="PNG"                     xaxistitle="Vehicle"                     yaxistitle="Idle time (hrs)"         <!--- title="Idle Report - Graph"  --->         chartheight="250"         chartwidth="77600"         show3d="no"         sortxaxis="yes" name="idleChart">                     <cfchartseries markerstyle="circle" type="bar" colorlist="##eb6044, ##F7A145, ##EAED8C, ##8CBA9B, ##4A7F87, ##E3D185, ##6E212E, ##B5463F, ##9EA800, ##ADBBBF, ##595C66, ##9F5C73, ##eb6044, ##F7A145, ##EAED8C, ##8CBA9B, ##4A7F87, ##E3D185, ##6E212E, ##B5463F, ##9EA800, ##ADBBBF, ##595C66, ##9F5C73, ##eb6044, ##F7A145, ##EAED8C, ##8CBA9B, ##4A7F87, ##E3D185, ##6E212E, ##B5463F, ##9EA800, ##ADBBBF, ##595C66, ##9F5C73, ##eb6044, ##F7A145, ##EAED8C, ##8CBA9B, ##4A7F87, ##E3D185, ##6E212E, ##B5463F, ##9EA800, ##ADBBBF, ##595C66, ##9F5C73" paintstyle="light">                      <cfloop array="#session.fullvehicleArray#" index = o>                                    <cfif NOT listFind(arrayToList(session.vehiclesWithNoData), o[1])>                            <cfset thisQueryName = session.data["dataQuery" & o[1]] />                              <cfquery name="getDataForVehicle" dbtype="query">                 select sum(idleSeconds) as totalIdleSeconds                 from thisQueryName               </cfquery>                                  <cfif getDataForVehicle.totalIdleSeconds lt 1>                 <cfset request.valueForGraph = 0 />               <cfelse>                 <cfset request.valueForGraph = getDataForVehicle.totalIdleSeconds />                     </cfif>                  <cfset request.thisVehicleTotalIdleTime = numberFormat((request.valueForGraph / 60)  / 60 ,'.9')/>                      <cfchartdata item="#o[2]#" value="#request.thisVehicleTotalIdleTime#">                                    </cfif>                                      </cfloop>                     </cfchartseries>                 </cfchart> -- tony Better than a thousand hollow words, is one word that brings peace. -- siddhartha gautama On Tue, Dec 2, 2008 at 11:27 AM, Shann > Hi Tony, > Could you please send code?  It would be difficult to troubleshoot without > seeing how you are inserting the chart. > > thanks, > speeves > > > >> hi there. >> >> i am having an issue, and ive googled all i can google. >> i simply cannot get a png chart to show up in a pdf :( >> >> i can def give you code, but the facts are, that it all >> works well and dandy in a browser on a page, but >> as soon as i try to cfdocument it, and make it a pdf >> the chart just doesnt show up.... >> >> any ideas?? >> >> thanks! >> >> -- tony >> >> Better than a thousand hollow words, is one word that brings peace. >> -- siddhartha gautama >> >> > >


Mailing Lists