Skip to content

Release version 1.0.3

Choose a tag to compare

@icyqwq icyqwq released this 21 Apr 11:06
· 24 commits to master since this release
  • 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
    }
])