Repository navigation
Release version 1.0.3
- Add an API for uploading custom chart data.
const value = parseInt((Math.random() * 100000))
plugin.sendChartData([
{
label: 'Custom Plugin Data', // Label to display in the FlexDesigner
value: value / 1024, // Value after conversion
unit: 'KB', // Unit after conversion
baseUnit: 'B', // Unit before conversion
baseVal: value, // Value before conversion
maxLen: 2, // Maximum length of the value, 1-4
category: 'custom', // Category of the value
key: 'custom' // Key of the value, should be unique of multiple values
}
])