Chart
Simple and flexible charting component for data visualization, which supports eight chart types: bar, line, area, pie, bubble, radar, polar, and scatter.
Notes
To use this component, you need to install the `Bit.BlazorUI.Extras` nuget package, as described in the Optional steps of the Getting started page.Usage
Bar Chart
A bar chart provides a way of showing data values represented as vertical bars.
It is sometimes used to show trend data, and the comparison of multiple data sets side by side.
Horizontal Bar Chart
A horizontal bar chart is a variation on a vertical bar chart. It is sometimes used to show trend data,
and the comparison of multiple data sets side by side. To achieve this you will have to set the horizontal
param in the BitChartBarConfig constructor to 'true'. The default for this property is 'false' and thus will show vertical bars.
Stacked Bar Chart
Bar charts can be configured into stacked bar charts by changing the settings on the X and Y axes to enable stacking.
Stacked bar charts can be used to show how one data series is made up of a number of smaller pieces.
Linear Line Chart
A line chart is a way of plotting data points on a line. Often, it is used to show trend data, or the comparison of two data sets.
Pie Chart
Pie and doughnut charts are probably the most commonly used charts.
They are divided into segments, the arc of each segment shows the proportional value of each piece of data.
They are excellent at showing the relational proportions between data.
Doughnut Chart
The doughnut chart is the same as the Pie chart.
To achieve this you will have to set the useDoughnutType param in the BitChartPieConfig constructor to 'true'.
PolarArea Chart
Polar area charts are similar to pie charts, but each segment has the same angle - the radius of the segment differs depending on the value.
This type of chart is often useful when we want to show a comparison data similar to a pie chart, but also show a scale of values for context.
Time Cartesian Axis
The time scale is used to display times and dates.
When building its ticks, it will automatically calculate the most comfortable unit base on the size of the scale.
Scatter
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. The example below creates a scatter chart with 4 points.
Bubble
A bubble chart is used to display three dimensions of data at the same time.
The location of the bubble is determined by the first two dimensions and the corresponding horizontal and vertical axes. The third dimension is represented by the size of the individual bubbles.
Radar Chart
A radar chart is a way of showing multiple data points and the variation between them.
They are often useful for comparing the points of two or more different data sets.
API
BitChart parameters
Name |
Type |
Default value |
Description |
---|---|---|---|
BitChartConfigBase properties
Name |
Type |
Default value |
Description |
---|---|---|---|
- On this page