|
|
This chapter focused on rendering bar sets, bar graphs, single line graphs, and multiple line graphs in SVG. These types of charts and graphs leverage some of the knowledge that you gained in previous chapters, such as SVG rect and polygon elements, gradient shading, and rendering rotated text. This chapter also provided an example of creating a three-dimensional effect by means of a simple shading technique. The examples on the CD-ROM for this chapter will further illustrate the fact that SVG is a superb tool for rendering graphs and charts. Creating charts and graphs in SVG provides a fine example of one cornerstone of the XP style of programming, which entails building a solid foundation with a small and simple set of features. After you have a created a robust foundation of code, you can add new features in an iterative, incremental fashion. Graphs and charts are ideal in terms of 'deconstructing' them into a set of logically-related components, which greatly simplifies the task of making fine-grained adjustments to the relative positions of the elements within a given component.
|
|