ActiveUI

ActiveUI

  • User Guide
  • Developer Documentation

Home > @activeviam/activeui-sdk > ApproximateFormatterParameters

ApproximateFormatterParameters interface

Formats axis tick labels into k/M/B notation. e.g. 1000 -> 1k

Signature:

export interface ApproximateFormatterParameters 

Properties

PropertyTypeDescription
decimalnumbernumber of decimal points to include in the formatted number. Integers will have x number of 0's appended. e.g. decimal(2) 1000 -> 1.00k
negativestringif equal to "parentheses", negative numbers are displayed in parentheses. -1000 -> (1k) Otherwise negative numbers are displayed with a minus.
prefixstringstring to prepend to tick label.
suffixstringstring to append to tick label.
  • ApproximateFormatterParameters interface
  • Properties
Copyright © 2019 ActiveViam