Creating Bar, Pie and Line graphs with FlashCharts and ASP by Marvin Sanchez

Contributed by
Rating: 4 stars4 stars4 stars4 stars4 stars / 37
February 19, 2001
Rate this Article:
MEH MEH++


SEARCH ASP FREE
TOOLS YOU CAN USE

advertisement

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.

******************************
blog comments powered by Disqus
ASP CODE ARTICLES

- ASP Forms
- ASP: The Beginning
- Getting Remote Files With ASP Continued
- Inbox and Outbox Manipulation in ASP
- Relational DropDownList Using VB.NET
- Ad Tracking URL Hits
- Use ViewState to display one record per page...
- Send Email using ASP.NET formatted in HTML
- ASP File Explorer
- ASP/XML Interview questions by Srivatsan Sri...
- Pressing RETURN won't submit the form
- This shows how you get the TEXT of a combo r...
- Group Data by Adrian Forbes
- Multiple checkbox select sample
- Multiple checkbox select with all values sam...

ASP Web Hosting ASP.Net Web Hosting Windows Web Hosting
 
 
 

ASP Free Forums 
 RSS  Tutorials RSS
 RSS  Forums RSS
 RSS  All Feeds
Site Map 
Request Media Kit
Write For Us Get Paid 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Privacy Policy 
Support 


© 2003-2012 by Developer Shed. All rights reserved. DS Cluster 7 - Follow our Sitemap
Most Popular Topics
All ASP.Net Tutorials