LineChartDataset Class

The line chart allows a number of properties to be specified for each dataset. These are used to set display properties for a specific dataset. https://www.chartjs.org/docs/latest/charts/line.html#dataset-properties.

Definition

Namespace: BlazorBootstrap
Assembly: BlazorBootstrap (in BlazorBootstrap.dll) Version: 0.7+45c8d9adb5970d727cceec44a5ed61aea0016e50
public sealed class LineChartDataset : ChartDataset<TimeChartItem?>
Inheritance
Object    ChartDatasetNullableTimeChartItem    LineChartDataset

Constructors

LineChartDatasetInitializes a new instance of the LineChartDataset class

Properties

BorderCapStyle Cap style of the line. Supported values are 'butt', 'round', and 'square'.
BorderDash Gets or sets the length and spacing of dashes.
BorderDashOffset Offset for line dashes.
BorderJoinStyle Line joint style. There are three possible values for this property: 'round', 'bevel', and 'miter'.
CubicInterpolationModehttps://www.chartjs.org/docs/latest/charts/line.html#cubicinterpolationmode. Supported values are 'default', and 'monotone'.
DrawActiveElementsOnTop Draw the active points of a dataset over the other points of the dataset.
Fill How to fill the area under the line. https://www.chartjs.org/docs/latest/charts/line.html#line-styling
HoverBorderCapStyle Cap style of the line when hovered.
HoverBorderDash Gets or sets the length and spacing of dashes when hovered.
HoverBorderDashOffset Offset for line dashes when hovered.
HoverBorderJoinStyle Line joint style. There are three possible values for this property: 'round', 'bevel', and 'miter'.
IndexAxis The base axis of the dataset. 'x' for horizontal lines and 'y' for vertical lines.
PointBackgroundColor The fill color for points.
PointBorderColor The border color for points.
PointBorderWidth The width of the point border in pixels.
PointHitRadius The pixel size of the non-displayed point that reacts to mouse events.
PointHoverBackgroundColor Point background color when hovered.
PointHoverBorderColor Point border color when hovered.
PointHoverBorderWidth Border width of point when hovered.
PointHoverRadius The radius of the point when hovered.
PointRadius The radius of the point shape. If set to 0, the point is not rendered.
PointRotation The rotation of the point in degrees.
PointStyle Style of the point. Supported values are 'circle', 'cross', 'crossRot', 'dash', 'line', 'rect', 'rectRounded', 'rectRot', 'star', and 'triangle' to style. the point.
ShowLine If , the lines between points are not drawn.
SpanGaps If , lines will be drawn between points with no or null data. If , points with null data will create a break in the line. Can also be a number specifying the maximum gap length to span. The unit of the value depends on the scale used.
Stepped true to show the line as a stepped line (tension will be ignored).
Tension Bezier curve tension of the line. Set to 0 to draw straight lines. This option is ignored if monotone cubic interpolation is used.
XAxisId The ID of the x axis to plot this dataset on.
YAxisId The ID of the y axis to plot this dataset on.

Methods

FillToDataset(Int32, Boolean) Fill between this dataset and the other dataset, specified by absolute index (zero based) or relative index.
FillToDataset(ChartDataNullableTimeChartItem, ChartDatasetNullableTimeChartItem, Boolean) Fill between this dataset and the other dataset, specified by passing a dataset in the same chart.
FillToEnd Fills between the current dataset and the top of the chart (fill: 'end').
FillToOrigin Fills between the current dataset and the origin. For legacy reasons, this is the same as fill: true.
FillToStackedValueBelow Fill to the line below the current dataset (fill: 'stack').
FillToStart Fills between the current dataset and the start (fill: 'start').
FillToValue Fill to the line of the given constant value.

See Also