setCustomApi(customApi) â
setCustomApi
set some built-in APIs for charts.
Reference â
typescript
(
customApi: {
formatDate?: (timestamp: number, format: string, type: number) => string
formatBigNumber?: (value: string | number) => string
}
) => void
Parameters â
customApi
Customize some APIs.formatDate
Formats a date.formatBigNumber
Format big numbers, such as 1000 is converted to 1k, 1000000 is converted to 1M, etc.
Returns â
setCustomApi
returns undefined
.