ScatterChartDataset Class

Scatter charts are based on basic line charts with the x-axis changed to a linear axis. To use a scatter chart, data must be passed as objects containing X and Y properties. https://www.chartjs.org/docs/latest/charts/scatter.html#dataset-properties. The scatter chart supports all the same properties as the line chart. By default, the scatter chart will override the showLine property of the line chart to .

Definition

Namespace: BlazorBootstrap
Assembly: BlazorBootstrap (in BlazorBootstrap.dll) Version: 0.7+45c8d9adb5970d727cceec44a5ed61aea0016e50
public sealed class ScatterChartDataset : ChartDataset<Point>
Inheritance
Object    ChartDatasetPoint    ScatterChartDataset

Constructors

ScatterChartDatasetInitializes a new instance of the ScatterChartDataset 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.
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. By default, the scatter chart will override the showLine property of the line chart to false.
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 Bézier 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.

See Also