BarChartDataset Class

The bar 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/bar.html#dataset-properties

Definition

Namespace: BlazorBootstrap
Assembly: BlazorBootstrap (in BlazorBootstrap.dll) Version: 0.7+45c8d9adb5970d727cceec44a5ed61aea0016e50
public sealed class BarChartDataset : ChartDataset<double?>
Inheritance
Object    ChartDatasetNullableDouble    BarChartDataset

Constructors

BarChartDatasetInitializes a new instance of the BarChartDataset class

Properties

BarPercentage Percent (0-1) of the available width each bar should be within the category width. 1.0 will take the whole category width and put the bars right next to each other.
BarThickness It is applied to the width of each bar, in pixels. When this is enforced, barPercentage and categoryPercentage are ignored.
BorderRadius Border radius
CategoryPercentage Percent (0-1) of the available width each category should be within the sample width.
Grouped Should the bars be grouped on index axis. When , all the datasets at same index value will be placed next to each other centering on that index value. When , each bar is placed on its actual index-axis value.
HoverBorderRadius The bar border radius when hovered (in pixels).
IndexAxis The base axis of the chart. 'x' for vertical charts and 'y' for horizontal charts. Supported values are 'x' and 'y'.
MaxBarThickness Set this to ensure that bars are not sized thicker than this.
MinBarLength Set this to ensure that bars have a minimum length in pixels.
SkipNull If , null or undefined values will not be used for spacing calculations when determining bar size.
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