Class ChartBuilder
- Namespace
- MiniTui
- Assembly
- MiniTui.dll
A line or scatter plot of one or more datasets, with axes, labels and a legend (1.x spec §8.4).
public sealed class ChartBuilder
- Inheritance
-
ChartBuilder
- Inherited Members
Methods
Block(BlockBuilder)
Draw a block around the chart.
public ChartBuilder Block(BlockBuilder block)
Parameters
blockBlockBuilder
Returns
Datasets(params Dataset[])
The datasets, drawn in order.
public ChartBuilder Datasets(params Dataset[] datasets)
Parameters
datasetsDataset[]
Returns
Datasets(IReadOnlyList<Dataset>)
The datasets, drawn in order.
public ChartBuilder Datasets(IReadOnlyList<Dataset> datasets)
Parameters
datasetsIReadOnlyList<Dataset>
Returns
Draw(Buffer, Rect)
Draw the chart.
public void Draw(Buffer buf, Rect area)
Parameters
Legend(LegendPosition)
Where the legend goes. Default TopRight.
public ChartBuilder Legend(LegendPosition position)
Parameters
positionLegendPosition
Returns
Style(Style)
A style patched over the theme's text style.
public ChartBuilder Style(Style style)
Parameters
styleStyle
Returns
XAxis(Axis)
The horizontal axis.
public ChartBuilder XAxis(Axis axis)
Parameters
axisAxis
Returns
YAxis(Axis)
The vertical axis.
public ChartBuilder YAxis(Axis axis)
Parameters
axisAxis