Dashboard gadget
The chart module define a dashboard gadget that adds a panel to the workbench that displays custom statistics。

Manifest Example
chart:
- key: basic-pie-chart
resource: basic-pie-chart
name: 类型占比
description: 类型占比
loadType: RemoteJs
tabOrder: 1
grid:
w: 4
h: 3
minW: 1
maxW: 12
minH: 1
icon: data:image/png;base64,iVBOR
Properties
| Name | Type | Required | Description |
|---|---|---|---|
| key | String | Yes | A key for the module, which other modules can refer to. Must be unique within the manifest. |
| resource | String | Yes | A reference to the static resources entry that gadget wants to display. |
| name | String | Yes | The name of the gadget, which is displayed at the top of the gadget. |
| description | String | No | The description of the gadget, which is displayed at the gadget list of the add gadget panel |
| loadType | Micro | Iframe | RemoteJs | Yes | The load resource type |
| tabOrder | String | No | Gadget class numbers. The class numbers of gadget in the same plugin should be the same. |
| grid | String | Yes | Gadget size. unit: grid. w: default width, h: default height, minW: min width, maxW: max width, minH: min height, maxH: max height |
| icon | String | Yes | The Base64 image of the icon that's display left to the name. |