Bar Charts

The Bar Charts components helps you to simply create a beautiful bar chart for displaying the data.


Reports Bar Chart

Active Users

(+23%) than last week

users

36K

Clicks

2M

Sales

$435

Items

43

Props Information

NameTypeDefaultDescription
id*stringUsed to set an id for the chart. Its a required prop.
color'primary' 'secondary' 'info' 'success' 'warning' 'error' 'danger' 'light' 'dark'darkUsed to set the color of the chart.
titlestringUsed to set a title for the chart.
descriptionstringUsed to set a description for the chart.
chart*objectUsed to set the chart data. It should be an object that contains the `labels` and `datasets` keys.
  1. The `labels` should be an array.
  2. The `datasets` should be an object with the following keys:
    1. `label` of type string.
    2. `data` of type array.
It is a required prop.
itemsarray[]Used to set the chart items. It should be an array of objects with the following keys: `icon`, `label` and `progress`.
  1. The `icon` should be an object with the following keys: `color` and `component`
  2. The `label` should be a string.
  3. The `progress` should be an object with the following keys: `content` and `percentage`

Thin Bar Chart

Pro
Thin Bar Chart

Props Information

NameTypeDefaultDescription
idstringUsed to set an id for the chart.
titlestringThin Bar ChartUsed to set a title for the chart.
heightstring, number170Used to set a height for the chart.
chartobjectUsed to set the chart data. It should be an object that contains the `labels` and `datasets` keys.
  1. The `labels` should be an array.
  2. The `datasets` should be an object with the following keys:
    1. `label` of type string.
    2. `data` of type array.
It is a required prop.