Line Charts - Material

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


Default Line Chart

Props Information

NameTypeDefaultDescription
idStringchart-lineUsed to set the chart id.
heightString300Used to set the chart height.
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 array with the following keys:
    1. `label` of type string.
    2. `data` of type array.
It is a required prop.