# StyleCode Property: seriesType

## seriesType

Specifies the display type of a series in a barchart or linechart.

Applies toTypeDefault
barchart > series
linechart > series
line,stack,legend,area,hiddenline

### Examples

// Example: barchart > series
show barchart "My Chart" a1b6 with
sum(Quantity) { seriesType: line }
group by Category

// Example: linechart > series
show linechart "My Chart" a1b6 with
Day.StockOnHand { seriesType: line }
Day.StockOnOrder



### Details

The line value specifies that the series should be displayed as a line. Each value in the series is a vertex on the line, centered on the horizontal range corresponding to the date (day, week or month) for that value.

The stack value specifies that the series should be displayed as a bar. If multiple series are displayed with stack, their bars are stacked on top of each other. The horizontal dimensions of the bar are the horizontal range corresponding to the date for that value.

The legend value specifies that the series should not be displayed in the chart, only in the legend.

The area value specifies that the series should be displayed as an area between the series value and the areaTo value (default is 0).

The hidden value specifies that the series should not be displayed at all, exactly as if it did not exist.

In a barchart, seriesType only applies if barchartGroups is bottom.