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.
****************************** |
| DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware. |
More ASP Code Articles More By aspfree developerWorks - FREE Tools! | Join this Rational Talks to You teleconference, featuring Paul Boustany and Mark Krasovich, to speak to the experts about becoming a Rational ClearCase power user. Get a chance to ask your questions and learn tips and tricks for using Rational ClearCase in Agile development FREE! Go There Now!
| | | | Learn to enable users to both rate existing animations and to combine existing animations into new snippets. This is the third in a series of three tutorials that chronicle the building of a site that enables collaborative discussion and animation building using Domino and OpenLaszlo. FREE! Go There Now!
| | | | Visit IBM developerWorks to download IBM DB2 Express-C 9.5, a no-charge version of DB2 Express 9 database server. DB2 Express-C offers the same core data server base features as other DB2 Express editions and provides a solid base to build and deploy applications developed using C/C++, Java, .NET, PHP, and other programming languages. FREE! Go There Now!
| | | | Visit IBM developerWorks to download a free trial of the Rational Host Access Transformation Services (HATS) Toolkit. The HATS toolkit provides a set of plug-ins for the IBM Rational Software Delivery Platform to help you easily extend your legacy applications. HATS makes your 3270 and 5250 applications available as HTML through the most popular Web browsers, while converting your host screens to a Web look and feel and it also enables you to develop new Web, portal, and rich-client applications. FREE! Go There Now!
| | | | This tutorial shows new users of IBM WebSphere Business Monitor Version 6.0.2 how to perform the "Hello World" equivalent for monitoring business process applications. It is intended to help you get familiar with the capabilities of the product. FREE! Go There Now!
| | | | Manage, govern, and share services across your organization by using WebSphere Service Registry and Repository. Follow the hands-on exercises to learn how to navigate the Web interface to publish, find, reuse, and update services. FREE! Go There Now!
| | | | Asset Reuse is a key strategy for companies looking to create innovative solutions to solve complex software development problems. Searching for, identifying, updating, using and deploying software assets can be a difficult challenge. Listen to this webcast, to learn about strategies and tools that you can leverage for a successful project, including Rational Asset Manager, Rational Software Architect and WebSphere Service Registry and Repository. FREE! Go There Now!
| | | | Join this Rational Talks to You teleconference on November 29 at 1:00 pm ET to participate in an interactive discusssion with Grady Booch around architecture and reuse. Get your questions answered! FREE! Go There Now!
| | | | Get a free trial download of the latest version of IBM Rational Functional Tester V7.0.1. Rational Functional Tester is an automated functional and regression testing solution for QA teams concerned with the quality of their Java, Microsoft Visual Studio .NET, and Web-based applications. FREE! Go There Now!
| | | | Whether you are creating new applications or modifying existing ones, managing integration of new components with traditional z/OS elements is a critical part of building and deploying modern applications. Listen to this webcast to see how IBM can help you optimize your development process using an IDE like Rational Developer for System z that integrates with management tools, such as ClearCase to manage your application development on mainframes. FREE! Go There Now!
| | | | All FREE IBM® developerWorks Tools! | |