Contents Previous Next

## 6.1 Common feature for all graphs

This is a summary of the available feature for all Graph based charts, i.e. line plots, error plots, scatter plots, etc.

### 6.1.1 Clipping

By default all plots are clipped outside the plot area. This means that if you manually specify a scale and then try to plot which has values smaller/larger than the scale those values will not show.

The clipping algorithm is "perfect" in the sense that for example line plots where the plot area cuts the line between two data points the line will be drawn up to the edge of the plot area. The algorithm used is O(1) in number of data points.

The disabling/enabling of clipping manually is controlled by Graph::SetClipping()

### 6.1.2 Commonly used properties

1. Each graph can have three titles accessed through the properties 'Graph::title', ''Graph::subtitle' and ''Graph::subsubtitle'
2. Each graph have a legend accessed through the 'Graph::legend' property
3. Each graph can have a left, center and right footer accessed through 'Graph::footer::left','Graph::footer::center' and 'Graph::footer::right'
4. You access the axis through 'Graph::xaxis', 'Graph::yaxis' and 'Graph::y2axis'
5. You access the grids through 'Graph::xgrid', 'Graph::ygrid' and 'Graph::y2grid'

### 6.1.3 Commonly used methods

1. You add plot objects (bar plots, pie plots, texts, bands, lines etc) with the 'Graph::Add() method.
2. Each graph can have a specified margin set by 'Graph::SetMargin()'
3. Each graph can have a fill color in the plot area 'Graph::SetColor()'
4. The plot areas may have a box around it 'Graph::SetBox()'
5. Each graph can have a specified margin color 'Graph::SetMarginColor()'
6. Each graph can have a frame or not 'Graph::SetFrame()'
7. Each graph can have a specified drop shadow 'Graph::SetShadow()'
8. The grid lines can be either behind or in front of the plots 'Graph::SetGridDepth()'
9. The plot can be rotated an arbitrary angle with 'Graph::SetAngle()'
10. You can add a background image with 'Graph::SetBackgroundImage'
11. You can change the overall appearance of the axis with 'Graph::SetAxisStyle'

Contents Previous Next