Tutorials1------open flash chart

来源:互联网 发布:淘宝如何删除我的评价 编辑:程序博客网 时间:2024/05/16 01:55

open flash chart

 

1.In this tutorials we are going to try and get the following chart onto your web site.

 

2.before we can start you should hava downloaded the open flash chart .zip file.   

 

http://cdnetworks-kr-1.dl.sourceforge.net/project/openflashchart/open-flash-chart/Version%202%20Lug%20Wyrm%20Charmer/open-flash-chart-2-Lug-Wyrm-Charmer.zip

 

3.open the .zip ,copy this open-flash-chart.swf to the root folder of your web  server.

 

now we can start   coding 

 

4.Copy the following code into a new file.

 

 

save it as 'chart.html' in the root of  your website.

 

now browse to the  web page,example will display an error message.   Don't worry!

 

chart data can not find so displays an error message

 

this is exactly what we wanted to see

 

5.now we need to provide it with some data.open flash chart reads json data(JSON is the name of the format that the data takes)

 

 

Next  copy the json data into a new file and save this as 'data.json'  in the root of the web site.

 

Last edit your url and append ?ofc=data.json.     Enter

 

congratulations。you can  do  it.