Configuration

Properties

DataMap Properties

Use the datamap property to configure the data for the Count KPI. The component expects these field names in its data configuration.

Below is an excerpt from the sample page in the Gentelella for WireBootstrap project for the Count KPI component.

const kpi = new wire.gentelella.kpiCount().render("#kpi", {
    ...
    cssIcon: "fa fa-trophy",
    description: "Sales for this week",
    datamap: {value: "Sales", label: "Product" }
});   

Note also in the example above that the component supports static settings for datamap attributes directly on the root of the configuration object. This configuration option can be used for any setting that may not need to be set dynamically based in the implementation.

Last updated