Skip to content

TextFormatter

Type module

Sources

Items from TextFormatter can be imported/included and used via following ways.

/**
* Import via: TextFormatter.ts
* Access items like: $textformatter.myVariable
*/
import * as $textformatter from "@amcharts/amcharts4/TextFormatter";

Variables

formatter

Type TextFormatter

Functions

getTextFormatter()

Returns TextFormatter

Returns the global instance of TextFormatter.

All classes and instances should reuse this universal text formatter, rather than create their own instance of it.