O'Reilly logo

OASIS OpenDocument Essentials: Using OASIS OpenDocument XML by J. David Eisenberg

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 8. Charts

OpenDocument includes a powerful specification for making charts. You may place a chart in a word processing document, a drawing, a presentation, or a spreadsheet.

Chart Terminology

Before proceeding to the actual XML, let's define some of the terms that are used when talking about charts. Consider the spreadsheet section shown in Figure 8.1, “Chart Derived from Spreadsheet”. In this chart, there are three categories: January, February, and March–the months of the first quarter of the year. Each of the items sold has a series of three data points or values. The values are the numbers in the spreadsheet, and they appear on the y-axis.

Figure 8.1. Chart Derived from Spreadsheet

images

It is also possible to describe a chart where each row is a series of data points, and the columns are the categories. This produces a chart of sales by items sold, shown in Figure 8.2, “Chart with Series in Rows”. Here, each month has a series of four data points, one for each item.

Figure 8.2. Chart with Series in Rows

images

In an x-y chart (such as the scatter chart in Figure 8.3, “Scatter Chart”), the x-axis is called the domain, as in the domain of an algebraic function.

Figure 8.3. Scatter Chart

Charts are Objects

Rather than being inserted directly into the content.xml, the chart is inserted ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required