All pastes #519072 Raw Edit

Miscellany

public text v1 · immutable
#519072 ·published 2007-05-29 15:04 UTC
rendered paste body

<html>
    <head>
        <script language="JavaScript" src="modules/powercharts/FusionCharts.js"></script>
    </head>

<body bgcolor="#ffffff">
    <div id="chartdiv" align="center">The chart will appear within this DIV. This text will be replaced by the chart.</div>

<script type="text/javascript">
        var myChart = new FusionCharts("modules/powercharts/DragColumn2D.swf", "myChartId", "600", "300", "0", "0");
        myChart.setDataXML("<?php echo <<< EOT
<chart palette='2' caption='Please estimate product sales for 2007, 2008 & 2009' subcaption='Drag the top edge of dashed columns to adjust data' showvalues='0' xAxisName='Year' yAxisName='Units' restoreBtnBorderColor='A2A3A0' formBtnBorderColor='A2A3A0'>
   <categories>
      <category name='2005 (Actuals)' />
      <category name='2006 (Actuals)' />
      <category name='2007 (Predicted)' />
      <category name='2008 (Predicted)' />
      <category name='2009 (Predicted)' />
   </categories>
   <dataset id='IJ' seriesName='Inkjet Printers'>
      <set id='IJ2005' value='25601' allowDrag='0'/>
      <set id='IJ2006' value='20148' allowDrag='0'/>
      <set id='IJ2007' value='17372' dashed='1'/>
      <set id='IJ2008' value='35407' dashed='1'/>
      <set id='IJ2009' value='38105' dashed='1'/>
   </dataset>
   <dataset id='LJ' seriesName='Laser Printers' showValues='0'>
      <set id='LJ2005' value='57401' allowDrag='0'/>
      <set id='LJ2006' value='41941' allowDrag='0'/>
      <set id='LJ2007' value='45263' dashed='1'/>
      <set id='LJ2008' value='117320' dashed='1'/>
      <set id='LJ2009' value='114845' dashed='1'/>
   </dataset>
   <dataset id='CR' seriesName='Cartridges' showValues='0'>
      <set id='CR2005' value='45000' allowDrag='0'/>
      <set id='CR2006' value='44835' allowDrag='0'/>
      <set id='CR2007' value='18722' dashed='1'/>
      <set id='CR2008' value='77557' dashed='1'/>
      <set id='CR2009' value='92633' dashed='1'/>
   </dataset>
   <styles>
      <definition>
         <style name="myCaptionFont" type="font" font="Arial" size="14" bold="1" />
         <style name="mySubCaptionFont" type="font" font="Arial" size="10" bold="0" />
      </definition>
      <application>
         <apply toObject="Caption" styles="myCaptionFont" />
         <apply toObject="SubCaption" styles="mySubCaptionFont" />
      </application>
   </styles>
</chart>
EOT;
?>");
        myChart.render("chartdiv");
</script>
</body>
</html>