Creating Bar, Pie and Line graphs with FlashCharts and ASP
This article demonstrates the power of integrating Macromedia's Flash and ASP.
We can now create pie charts, line graph, bar chart without having to install components on our server. FlashChart uses Macromedia's vector technology to create charts live on the clients browser.
We can use javascripting to load and update the data of our charts. Then the small flash application displays simple, nice looking charts.
The data of the charts itself can be code using a simple ASP API. Here's a sample code for creating a bar chart:
| <!-- #include file="flashchart.inc" --> <% response.buffer=true
vchart_initialize vchart_set_bgcolor "EFEFEF" vchart_set_title "ASP Generated Bar1 Chart Sample" vchart_set_subtitle "October 4, 2000" vchart_set_comment "Sales for the First Half of Year 2000" vchart_set_show_grids vcAll vchart_add_series "Flash Chart Demo", vcbar1, vcorange vchart_add_series_data 1, 15 vchart_add_series_data 1, 22 vchart_add_series_data 1, 30 vchart_add_series_data 1, 35 vchart_add_series_data 1, 28 vchart_add_series_data 1, 23 vchart_add_series "Flash Chart Free", vcbar1, vcgold vchart_add_series_data 2, 5 vchart_add_series_data 2, 11 vchart_add_series_data 2, 12 vchart_add_series_data 2, 14 vchart_add_series_data 2, 8 vchart_add_series_data 2, 18 vchart_add_label "Jan" vchart_add_label "Feb" vchart_add_label "Mar" vchart_add_label "Apr" vchart_add_label "May" vchart_add_label "Jun" vchart_set_minvalue 0 vchart_show %>
|
Click here to view some samples. (Note: Your will need Flash Player 5 to view the sample)
Go to FlashChart's site to download the free version of FlashCharts
I believe that utilizing Macromedia's flash pluggin is as powerful as using java applets and ActiveX controls. And action scripting in Flash 5 has made it possible for integrating flash with ASP or even PHP. Other flash applications I'm currently working on are FlashBarCode & FlashCalendar.
****************************** |