Statistic Text

1 min read

Statistic

slider

Properties - Statistic

PropertiesTypeDescription
titlefalse | StatisticTexttitle
contentfalse | StatisticTextcontent

StatisticText

PropertiesTypeDescription
styleCSSStyleDeclarationStyles for statistical text (css styles)
contentstringContent of the text。Priority: customHtml > formatter > content
customHtmlCustomHtmlcustom content by using html,priority is higher than formatter
formatterFunctionThe formatted content of the text
rotatenumberRotation angle
offsetXnumberX offset
offsetYnumberY offset

Type of CustomHtml is as follow:

type CustomHtml = (container: HTMLElement, view: View, datum: object, data: object[]) => string;

Example: