Mastering ColdFusion 5 with CD-ROM by Arman Danesh, Raymond Camden, Kristin Aileen Motlagh |, Paperback | Barnes & Noble
Mastering ColdFusion 5 with CD-ROM

Mastering ColdFusion 5 with CD-ROM

by Arman Danesh, Raymond Camden, Kristin Aileen Motlagh
     
 
A Database-Powered Web Site--Now Easily Within Your Reach

For developing database-driven Web sites or Web applications, Mastering ColdFusion 5 is as indispensable as ColdFusion itself. Written by three ColdFusion experts and fully updated to cover the capabilities of the latest release, this book offers step-by-step, example-based instruction that will

Overview

A Database-Powered Web Site--Now Easily Within Your Reach

For developing database-driven Web sites or Web applications, Mastering ColdFusion 5 is as indispensable as ColdFusion itself. Written by three ColdFusion experts and fully updated to cover the capabilities of the latest release, this book offers step-by-step, example-based instruction that will quickly turn beginners into productive developers and experienced users into true ColdFusion masters. It's a comprehensive resource that you won't outgrow anytime soon. Coverage includes:

  • Writing to and reading from a database
  • Including outside code
  • Creating custom tags and user-defined functions
  • Creating and manipulating variables
  • Using SQL for advanced, dynamic database interaction
  • Creating and validating forms
  • Creating dynamic graphs and charts
  • Using the ColdFusion Web Application Framework
  • Interacting with e-mail, Web, FTP, and LDAP servers
  • Implementing error control
  • Implementing fine-grained, advanced security
  • Using WDDX
  • Administering ColdFusion servers
  • Using COM and Java Objects with ColdFusion
  • Creating a full-text search engine with Verity


From the Author
ColdFusion is an easy-to-learn but powerful, full-featured Web application development platform. Easier than Active Server Pages, Java or Perl for the non-programmer to learn but just as flexible and powerful, Mastering ColdFusion 5 takes an HTML developer from the basics of ColdFusion to high-end development subjects including integration with mail, Web and FTP servers, the use of the Verity search engine and the development of custom tags and functions. This book is both a tutorial for the student of ColdFusion and a reference for the active ColdFusion developer. --Arman Danesh


About the Author

Arman Danesh is pursuing an advanced degree in computer science at Simon Fraser University in Vancouver. He has extensive ColdFusion development experience, including developing interactive Web applications for Landegg International University in Switzerland and managing the Baha'i World News Service, the official news service of the Baha'i International Community. He has written several books on HTML, JavaScript, and Linux and contributes articles on computer topics to newspapers and magazines throughout Asia.

Kristin Aileen Motlagh served as a member of Team Allaire. She has worked with ColdFusion since version 1.5 and has developed ColdFusion applications for a wide range of corporate clients, including the World Bank, MCI, and GE.

Raymond Camden is the Principal Spectra Compliance Engineer for Macromedia. He has worked with ColdFusion for many years and has written numerous articles for Allaire.com and the ColdFusion Developer's Journal.

Product Details

ISBN-13:
9780782129793
Publisher:
Sybex, Incorporated
Publication date:
08/07/2001
Series:
Mastering Series
Edition description:
REVISED, BOOK & CD
Pages:
1296
Product dimensions:
7.60(w) x 8.96(h) x 2.60(d)

Read an Excerpt

Chapter 13: Creating Charts and Graphs

In this chapter, you will learn to use a new feature of ColdFusion 5: the ability to create charts and graphs on the fly. As a result of the Macromedia acquisition of Allaire, ColdFusion now includes the Macromedia Generator graph-generation engine. This allows ColdFusion to create bar, line, and pie charts on demand. This allows you to create Web pages that present data graphically without creating graphics in advance.

In addition, you can create charts and graphs from dynamic data, such as the result of a database query. This makes the charting capabilities even more powerful: Users can always see charts or graphs reflecting the latest available data for your application.

This chapter provides a brief overview of the advantages of graphing data and how graphs in ColdFusion work and then proceeds to show you how to create graphs and charts manually and dynamically.

Why Graph Data?

Too often, data is presented in text format to users, perhaps in the form of a table. But, with most numerical data, users are better able to see the relationship among the numbers through a visual presentation.

For instance, consider a simple example: a small university tracks the number of students from each continent. It does this to get a sense of its student body's diversity. This data can be presented as raw numerical data (see Figure 13.1).

It is hard to quickly get a sense of the relative sizes of the student body from each continent from this table. This is improved slightly by reporting percentages instead of raw student numbers (see Figure 13.2).

By displaying the results in a pie graph, it is easy to quickly see the relationship of the number of students from each continent without having to pay detailed attention to the specific numbers: the relative size of the pie slices conveys sufficient information to get a qualitative feel of the diversity of the student body (see Figure 13.3).

The problem of data visualization becomes even more acute with more complex data sets. At a certain point, tables of numbers become veils that hide the meaning of the data: Graphical presentation can pierce those veils and ColdFusion 5's graphing and charting capabilities provide a simple way to achieve this.

Graphs in ColdFusion

ColdFusion's graphing capabilities are provided by the Macromedia Generator engine and the JRun Java server, both of which are included as part of ColdFusion 5. To be able to create graphs in ColdFusion, you will need to be sure both of these are installed. Normally, they are installed by default when you install ColdFusion 5. If you opted not to install them, rerun the ColdFusion installation process and update your installation to include these components.

Types of Graphs
ColdFusion can generate several types of graphs:

Bar charts Graphs representing data as a series of vertical bars (see Figure 13.4)

Horizontal bar charts Graphs representing data as a series of horizontal bars (see Figure 13.5)

Line graphs Graphs representing data as a series of points connected by a line (see Figure 13.6)

Area graphs Graphs representing data as a series of points connected by a line with the area under the line shaded (see Figure 13.7)

Pie charts Graphs representing data as slices of a complete circle (see Figure 13.8)....

Meet the Author

Arman Danesh is pursuing an advanced degree in computer science at Simon Fraser University in Vancouver. He has extensive ColdFusion development experience, including developing interactive Web applications for Landegg International University in Switzerland and managing the Baha'i World News Service, the official news service of the Baha'i International Community. He has written several books on HTML, JavaScript, and Linux.

Kristin Aileen Motlagh is Co-founder/Director of Technical Solutions for Trilemetry and a member of Team Allaire. She has worked with ColdFusion since version 1.5 and has developed ColdFusion applications for a wide range of corporate clients, including the World Bank, MCI, and GE.

Raymond Camden is the Principal Spectra Compliance Engineer for Macromedia. He has worked with ColdFusion for many years and has written numerous articles for Allaire.com and ColdFusion Developer's Journal.

Customer Reviews

Average Review:

Write a Review

and post it to your social network

     

Most Helpful Customer Reviews

See all customer reviews >