Big Faceless Graph Library 2.3 Tag Documentation - Copyright © 2006 Big Faceless Organization

# splineseries

## Description

The "splineseries" tag is identical to lineseries, except the resulting line is fitted or "smoothed" using a spline curve. The exact spline to use is specified using the "spline" attribute, which defaults to "catmullrom" (a type of spline the passes through every point on the curve).

## Examples

Example: Plotting numeric data, using a smoothed line
```<axesgraph width="300" height="300">
<splineseries name="My Line Series">
<data x="1" y="5" />
<data x="2" y="7" />
<data x="3" y="12" />
</splineseries>
</axesgraph>```
Example: Plotting dates, using a B-spline for a curve that doesn't pass through each point
```<axesgraph width="300" height="300">
<axis pos="bottom" type="date" density="sparse" />
<splineseries name="My Line Series" spline="b">
<data x="2004-01-01" y="5" />
<data x="2004-01-02" y="7" />
<data x="2004-01-03" y="12" />
</splineseries>
</axesgraph>```

## Attributes

 spline "catmullrom" | "b" | Double[16] optional XML / Tag Library

### Description

The spline algorithm to use to fit the curve. The default, "catmullrom" causes the spline to pass through each point. A B-spline which approximates each point can be drawn by setting this to "b". The mathematically inclined can also specify the 4x4 spline matrix directly by setting this attribute to an array of 16 doubles.
 name String mandatory XML / Tag Library

### Description

Every item in the graph may have a "name", which is how it appears in the Key (if listed) and for some items, how it's refered to in JavaScript. The name is required for Series and optional for other items like markers.
 pos (top | bottom) (left | right) optional XML / Tag Library

### Description

Which axes to plot the series against on an AxesGraph. This attribute has a default value of "bottom left", which means the series is plotted against the bottom and left axis, but other valid values would be "top left", "bottom right" or "top right".

### Examples

Example: Plotting dates against the bottom axis and days of week against the top
```<axesgraph width="300" height="300">
<axis pos="bottom" type="date">
<teeth rotate="90" align="left middle" />
</axis>
<axis pos="top" type="bar" />
<lineseries pos="bottom left" name="Amount over the year">
<data x="2003-01-01" y="20" />
...
<data x="2003-12-31" y="17" />
</lineseries>
<barseries pos="top left" name="Average amount per weekday">
<data x="Sun" y="18" />
...
<data x="Sat" y="21" />
</barseries>
</axesgraph>```
 linethickness Real > 0 optional XML / Tag Library

### Description

The thickness to draw the borders for this object, except for lineseries and functionseries objects when the graph is being drawn in 2D, in which case this attribute, as you would expect, sets the thickness of the lines.
 dash Real[] optional XML / Tag Library

### Description

The dashing pattern to use to draw the borders for this object (for 2D lineseries this functions the same as the linethickness attribute). An even number of parameters that are > 0 must be specified, where the first in each pair is the length of the dash, the second is the length of the space. Examples would be `dash="5,5"` to create a regular dash pattern, or `dash="6,2,2,2"` to create a dash/dot type pattern.
Big Faceless Graph Library 2.3 Tag Documentation - Copyright © 2006 Big Faceless Organization