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!
| | | | Effective governance for lean development isn’t about command and control. Instead, the focus is on enabling the right behaviors and practices through collaborative and supportive techniques. Hear from Scott Ambler on how it is far more effective to motivate people to do the right thing than it is to force them to do so. Learn how to form a lightweight, collaboration-based framework that reflects the realities of modern IT organizations. 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!
| | | | WebSphere Process Server delivers a unique integration framework that simplifies existing IT resources. Often, as IT assets grow to support business demand, so too does their complexity and manageability. In this webcast, we’ll discuss how WebSphere Process Server helps deliver an SOA infrastructure that provides a common model to orchestrate, mediate, connect, map, and execute the underlying IT functions. Discover how WebSphere Process Server simplifies integration of business processes by leveraging existing IT assets as reusable services without the complexities of traditional integration methodologies. FREE! Go There Now!
| | | | Visit IBM developerWorks to download a free trial version of WebSphere Extended Deployment Compute Grid, which lets you schedule, execute, and monitor batch jobs. Because online transaction processing and batch jobs execute simultaneously on the same server resources, you can avoid costly duplication of resources. Compute Grid supports job types of Java transactional batch, compute-intensive and a new type called "native execution", which enables non-Java workloads to run on distributed end points. FREE! Go There Now!
| | | | Join this Rational Talks to You teleconference on December 6 at 1:00 pm ET to participate in an agile application development discussion and get your questions answered on using IBM Rational Method Composer in a distributed environment.Get your questions answered! FREE! Go There Now!
| | | | As organizations have grown increasingly dependent on online software, the risk of malicious attacks has also become far more serious. Fortunately, well-governed organizations can protect their Web applications by injecting vulnerability assessments and ethical hacks into their software development and delivery processes. This paper describes 12 of the most common hacker attacks and provides basic rules that you can follow to help create more hack-resistant Web applications. FREE! Go There Now!
| | | | Join the IBM Watchfire team for an informative discussion on techniques and best practices to proactively manage Web application security and how to effectively build application security testing into the software development lifecycle (SDLC). In this Software Delivery Platform webcast you will learn: How to better understand potential web application security vulnerabilities, best practices and how to effectively integrate application security testing into the software development lifecycle, the importance of detecting and removing software vulnerabilities during application development. FREE! Go There Now!
| | | | The Eclipse community is constantly working to extend Eclipse's functionality. In this webcast, learn about some of the most important and feature-rich projects under development. From multi-language support to plug-in development, tune in to see what Eclipse is capable of now. FREE! Go There Now!
| | | | User communities play an important role in communication and collaboration around products, solutions and other areas of special interest to members. Successful communities are able to provide the right mix of content and services to deliver a value proposition that resonates with each audience. Join Tom Inman, VP of Marketing for Information and Platform Solutions as he introduces the new LeverageINFORMATION community. During this webcast, learn about the value provided by the community and how customers and partners derive value from the community in addressing their own technical and business challenges. FREE! Go There Now!
| | | | All FREE IBM® developerWorks Tools! | |