Appearance
StatisticCardWithChart
File:
@views/Widgets/StatisticCardWithChart
StatisticCardWithChart
is a highly customizable widget that provides data statistic with a chart.
Props
For StatisticCardWithChart
widget, the following props are available:
Prop | Type | Default | Note |
---|---|---|---|
date | String | - | Adds date. |
title | String | - | Card title. |
stat | [String,Number] | - | Display stat. |
slug | [String,Number] | - | Display slug. |
change | Number | - | This value will be displayed as a percentage. |
className | String | - | Overrides or extends the component's styles. |
chartLoaded | Boolean | - | Checks if the chart is loaded, You can control this state via api response. |
chartData | Object | - | Adds chart data, You can pass chart data received from your API response to this component. |
icon | Object | - | Inserts a custom EIcon element to the widget. More Info here. |