Calc/Implementation/Chart2 Framework

From Apache OpenOffice Wiki
< Calc‎ | Implementation
Revision as of 02:11, 28 April 2012 by Clarence.guo (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

1. Basic Concepts of Chart Kernel Objects

A chart model contains three major parts, titles(main title and sub-title), legend, and diagram which contains concrete chart data. The chart data is organized by chart type in a coordinate system. The chart type consist of data series, which represents as a series of individual data points with the same color. The data series is generally organized by column which is the default in the chart data table, but it can be organized by row as well. For some chart types, a data point needs several data units. For example, a bubble chart needs three data units: a X coordinate point, a Y coordinate point, and the bubble size. So it needs three columns(or rows according to the direction of the data series) to represent a completed data series. Each column or row is called data sequence. A diagram has a wall as the background of the coordinate system. For 3D charts, it also needs a floor. The hierarchical model of the chart kernel objects is like below chart.

  • Chart Model
 Titles
   - Main title
   - Sub-title
 Legend
 Diagram
   - Chart wall
   - Chart floor
   - Coordinate system
     - Chart type
       - Data series
         - Data sequence
         - Data points
Personal tools