XML to Flash Charts in a flash     

Preview Gallery

Configuration

  • For activating license, follow the instructions you received along with the site key
  • In the following sample flash-embed html code:
    <object 
        type="application/x-shockwave-flash"
        width="600" 
        height="400" 
        id="SwifferChart.Sample" 
        align="middle"
	data="SwifferChart.swf?xmlfilename=swcdata/areasample0.xml">
    <param name="allowScriptAccess" value="sameDomain" />
    <param name="movie" value="SwifferChart.swf?xmlfilename=swcdata/areasample0.xml&allowscale=false" />
    <param name="quality" value="high" />
    <param name="bgcolor" value="#ffffff" />
    <embed quality="high" 
            bgcolor="#ffffff" 
            name="SwifferChart.Sample" 
            align="middle" allowScriptAccess="sameDomain" 
            type="application/x-shockwave-flash" 
            pluginspage="http://www.macromedia.com/go/getflashplayer" />
    </object>
  • these are the configurable variables:
    • width
    • height
    • path to SwifferChart.swf
    • parameter: xmlfilename
    • parameter: allowscale
  • width and height: these enable you to control the dimensions of the chart displayed within a page. (See ‘allowscale’ below)
  • SwifferChart: you might want to install in a common place such as the webroot directory

such that it can be easily referenced from other files/scripts

  • xmlfilename:
    • this could be a static xml file (perhaps, created at the end of the day) or
    • a file that is dynamically created and placed in the location or
    • it could be one of your server-side scripts such as .php or .aspx files that emits an xml

In case of .xml files, it is a better idea to dedicate a single directory for easy maintenance.

  • allowscale: when set to true, Flash runtime will scale the chart proportionately according to the dimensions, defined by width and height parameters.
 
swc/configuration.txt · Last modified: 07/02/2007 10:46 by swcdoc
 
Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki