--- title: "Micro Chart" slug: "micro-chart-widget" updated: 2026-04-17T07:30:19Z published: 2026-04-17T07:30:19Z canonical: "learn.servitly.com/micro-chart-widget" --- > ## Documentation Index > Fetch the complete documentation index at: https://learn.servitly.com/llms.txt > Use this file to discover all available pages before exploring further. # Micro Chart This widget displays metric or statistical data in a compact chart. ![Micro Chart](https://components-manager.servitly.com/components/MicroChart_1/IMAGES/_screenshot?owner=AG_Servitly) With this chart, you can display data from a single metric or statistic without an axis, grid, or legend. You can select whether to display data by using: - *LINE*: a single line is used to render data points in the period. The line is automatically colored by using the threshold severity of the last value. - *BARS*: for each value, a bar is displayed. Each bar is colored according to the threshold severity of the value. - *PIE*: display a pie chart, where each slice represents a value. Each slice is colored according to the threshold severity of the value. ## Template Syntax Below you can find some examples of how to use the component within a template. ```xml                                             ``` ## Component Reference Here is a comprehensive list of all the elements and properties that can be used to configure the component. #### Micro Chart `<micro-chart-widget>` | *Layout* | The way the data are presented, which can be Line, Bars or Pie. **Name**: layout **Type**: ENUM \| Optional **Values**: *LINE*, *BARS*, *PIE* **Default Value**: *LINE* `layout="LINE"` | | --- | --- | | *Title* | The title displayed on the top part of the widget box. **Name**: title **Type**: STRING \| Optional `[title]="'Micro Chart'"` | | **Data** | | *Default Loading Period* | The default period applied when entering the page. **Name**: defaultPeriodValue **Type**: PERIODS \| Optional **Default Value**: *LAST_30_DAYS* `defaultPeriodValue="LAST_30_DAYS"` | | *Period Variable* | The id of the page's variable providing the date range filtering period, for instance the id of a . **Name**: periodRef **Type**: STRING \| Optional `periodRef="period"` | | *Query* | The array of conditions filtering out items. For instance: [query]='[{'property': 'connectionStatus', 'predicate': 'eq', 'value': '1'}]' Predicates: eq, beginsWith, like, notLike, isEmpty, isNotEmpty, gt, gte, lt, lte. **Name**: query **Type**: QUERY \| Optional **Predicates**: *beginsWith*, *eq*, *neq*, *gt*, *gte*, *isEmpty*, *isNotEmpty*, *lt*, *lte*, *like*, *notLike* `[query]="[{property:'prop1', predicate: 'eq', value: 'foo'}, {property:'prop2', predicate: 'in', value: ['bar', 'baz']}]"` | | *Query Variable* | The id of the page's used for searching. **Name**: queryFieldRef **Type**: STRING \| Optional `queryFieldRef="query-1"` | | **Expandable Details** | | *Details Button Icon* | The Angular Material icon displayed inside the details button. **Name**: expandableDetails.expandIcon **Type**: STRING \| Optional `[expandableDetails]="{expandIcon: 'abc'}"` | | *Mode* | The way the details is opened. **Name**: expandableDetails.mode **Type**: ENUM \| Optional **Values**: *EMBEDDED*, *POPUP* **Default Value**: *POPUP* `[expandableDetails]="{mode: 'EMBEDDED'}"` | | *Popup Title* | The title displayed on the top part of the popup. **Name**: expandableDetails.popupTitle **Type**: STRING \| Optional `[expandableDetails]="{popupTitle: 'abc'}"` | | *Template* | The name of the template to display. **Name**: expandableDetails.template **Type**: STRING \| Optional `[expandableDetails]="{template: 'abc'}"` | | **Advanced** | | *Color* | The default color expressed in hexadecimal. **Name**: color **Type**: STRING \| Optional `color="#007BFF"` | | *Max* | The maximum value showed on the axis. **Name**: maxScale **Type**: INTEGER \| Optional `maxScale="123"` | | *Min* | The minimum value showed on the axis. **Name**: minScale **Type**: INTEGER \| Optional `minScale="123"` | | **Rendering** | | *Availability* | Configure availability based on active features on Digital Plan on Add-ons **Name**: hasFeature **Type**: FEATURE (multiple) \| Optional `[hasFeature]="['feature_a', 'feature_b']"` | | *CSS Class* | The name(s) of the CSS class used to customize the widget layout. **Name**: class **Type**: STRING \| Optional `class="my-custom-class"` | | *Height* | The height of the widget (e.g. 250px). **Name**: height **Type**: STRING \| Optional **Default Value**: *200px* `height="250px"` | | *Visibility Condition* | The expression that allows you to reduce the visibility of the element. **Name**: *ngIf **Type**: STRING \| Optional `*ngIf="getUser().organizationId != null"` | | **Sub Elements** | | [*Metric*](/docs/micro-chart-widget/#metric) | The metrics used to load timeseries data. | #### Metric `<metric>` | *Aggregation* | The aggregation to be applied to the daily values of the metric. If missing, the last value of the day is loaded. **Name**: aggregation **Type**: ENUM \| Optional **Values**: *AVG*, *DELTA*, *MIN*, *MAX* `aggregation="AVG"` | | --- | --- | | *Filter* | The name of the filter used to transform and display values. **Name**: filter **Type**: FILTER \| Optional `filter="fooBarFilter"` | | *Label* | The metric alternative label. **Name**: label **Type**: STRING \| Optional `label="Temperature"` | | *Name* | The metric whose value(s) must be loaded by the widget. **Name**: name **Type**: METRIC \| Required `name="Temperature"` | | *Unit* | The unit of measurement to be displayed along the value. **Name**: unit **Type**: STRING \| Optional `unit="&deg;C"` | | **Advanced** | | *Visibility Condition* | The expression that allows you to reduce the visibility of the element. **Name**: *ngIf **Type**: STRING \| Optional `*ngIf="getUser().organizationId != null"` | ## Full Syntax Example ```xml     ```