numberFormatOptions
To add more number formatting options to views such as the table view, you can specify custom formatting functions.
For example:
<Vizzly.Dashboard
numberFormatOptions={{
[id: string]: {
// Provide the logic of the formatting function
formatter: (number: number) => string;
// Describe this formatting function. For example "Round to 5dp"
description: string;
};
}}
// ... rest of the props
/>
Please note, the ID must not change, otherwise the formatting function will no-longer be found and we shall fallback to the Vizzly default of passing through the value.