|
System
Requirements Server Operating System
- any
Client Browser - any graphic browser which support
Macromedia Flash
Shareware Restrictions
You can free use Jobdao Flash Chart for non
commercial purpose.
If you use this software in commercial purpose, you are
profiting from, requires registration (payment) of the
software. For information on registering, Purchase your
registration key hereThe copyright line that appears
to generated charts will remove after you get the license
key.
How it work
Jobdao Flash Chart based on the Macromedia Flash?
technology. To show a chart uses a Macromedia Flash Player.
There is no necessity to install the additional software on
a server. Macromedia Flash Player must be installed on the
client computers. The All popular browsers is support
Macromedia Flash?. Drawing of the chart is carried out in a
browser of the client, therefore the absorption of server is
minimal. From server to client transferred just two files:
- jfchart.swf - main module
- Data File - file or script, contents a data for
chart building
Macromedia Flash Player download files and build chart as a
matter of record.
Data File specification
The Data File contains the data for chart building. The Data
File may be a static file or dynamically builded by script (PHP,
ASP, JSP, Perl, etc.), located on web-server. The structure
of a file reminds the table.
Data File structure:
&licensekey=License Key
&istoggle=Toggle Flag to show or hide field value
&reporttitle=Chart Title
&xtitle=Bottom Comment (x-axis title)
&ytitle=Left Comment (the y-axis title)
&columnname=Columns Name1||Columns Name2||Columns NameN
&charttype=Chart Type
&data1=Series Name(1)\t Value(1) \t Value(2nd-1, option
for multi-line)
...
&dataN=Series Name(N)\t Value(N1) \t Value(2nd-N1,
option)
Where:
licensekey - License Key
istoggle - Toggle Flag to show or hide field value
reporttitle - Chart Title
xtitle - Bottom Comment (x-axis title)
ytitle - Left Comment (the 2nd y-axis title)
columnname - Column name (If you have several column
data, split your column name with ||)
charttype - Chart Type, Jobdao Flash Chart supports following chart types: bar,
pie, line, hbar (horizontal bar) and fun.
data1...dataN - The Series Name and items data ( You
can split your data name and value with
\t or ||
)
See the sample and live
demos!
How to Publish Flash Chart
Upload Data File and jfchart.swf to your server.
To publish Flash Chart on HTML page, please use following
HTML-code:
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0"
width="700" height="328" align="middle">
<param name="allowScriptAccess" value="sameDomain"
/>
<param name="movie" value="jfchart.swf?datafile=data.txt"
/>
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<param name="wmode" value="transparent" />
<embed src="jfchart.swf?datafile=data.txt"
quality="high" bgcolor="#ffffff" width="700"
height="328" name="JFChart" align="middle"
wmode="transparent" allowScriptAccess="sameDomain"
type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"
/>
</object>
| http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0 |
It is a url to Macromedia Flash installation file. If you
will use chart in the internal network (Intranet), You can
download swflash.cab file and locate it on your internal
server. Then change this url to your internal server.
Whereupon users will able install Macromedia Flash Player
from internal server.
It is a chart size. You can change this size, but chart
will scaled.
| jfchart.swf?datafile=data.txt |
It is a main parameters:
jfchart.swf - SWF file.
datafile - Data file. File or script name.
If you use script as data file, you can transfer it
parameters. For example:
| jfchart.swf?datafile=http://localhost/getdata.asp?id=1%26flag=2 |
URL to Data file:
datafile=http://localhost/getdata.asp?id=1%26flag=2
http://localhost/getdata.asp - it is url to data file.
id=1%26flag=2 - id and p parameter transferred to getdata.asp.
Note:
%26 - symbols to separate parameters. When you define a
parameters for script, you must use %26, don't use symbol &!
Step by Step
Step #1
Create a data file as described in Data file specification.
If you wish create dynamic data source, you must use
scripts. Script must return content as described in Data
file specification. (See also
Samples)
Step #2
Upload to your server jfchart.swf file and Data File.
Step #3
Insert to your page a HTML code. See How to Publish Chart.
|