Search
KpiWidget Class
Remarks See Also
 






Represents a KPI widget that displays a metric with a header.

Namespace: MindFusion.Dashboards
File: KpiWidget.js

 Syntax

JavaScript  Copy Code

// class
KpiWidget.prototype = {}

 Remarks

KpiWidget displays high-impact numeric metrics, financial summaries, growth deltas, and executive status badges. It is optimized for top-level dashboard rows where vital indicators must be understood at a glance.

The primary numeric value is bound dynamically to a data source using dataPath. The valueFormat property accepts an Intl.NumberFormat instance to automatically format values into localized currency, percentages, or grouped decimals (e.g., "$2,450,000" or "98.5%").

Descriptive labels are controlled by headerText (or headerPath) and footerText (or footerPath). These allow labeling the metric (e.g., "TOTAL REVENUE") and providing comparative context (e.g., "vs Last Quarter").

Performance deltas are presented using the changeText (or changePath) and changeFormat properties.

Font styling for headers and values can be customized via headerFontName, headerFontSize, valueFontName, valueFontSize, and minFontSize.

 Inheritance Hierarchy

MindFusion.Dashboards.DashboardWidget
    MindFusion.Dashboards.KpiWidget

 See Also