Analytics KPI

The SmartAdmin Analytics KPI component is native to the SmartAdmin theme. The component uses a sparkline trend next to a metric and associated label.


The Analytics KPI component is located in the SmartAdmin for WireBootstrap library file located at \lib\smart-admin.


The Analytics KPI extends the wire.ui.component class. As such, it inherits all the base functionality of that class.

To create a new instance of the Analytics KPI component, use the wire.smartAdmin.kpiCount class.

const kpi = wire.smartAdmin.kpiAnalytics();


An example that demonstrates the Analytics KPI component can be found in the SmartAdmin for WireBootstrap project at \pages\kpis-analytics.html.

Last updated