Class FormatConfig

java.lang.Object
smile.plot.vega.FormatConfig

public class FormatConfig extends Object
These config properties define the default number and time formats for text marks as well as axes, headers, tooltip, and legends.
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toPrettyString

      public String toPrettyString()
      Returns the specification in pretty print.
      Returns:
      the specification in pretty print.
    • numberFormat

      public FormatConfig numberFormat(String format)
      Sets custom number format.
    • numberFormatType

      public FormatConfig numberFormatType(String formatType)
      Sets custom number format type.
    • normalizedNumberFormat

      public FormatConfig normalizedNumberFormat(String format)
      Sets custom normalized number format.
    • normalizedNumberFormatType

      public FormatConfig normalizedNumberFormatType(String formatType)
      Sets custom normalized number format type.
    • timeFormat

      public FormatConfig timeFormat(String format)
      Sets custom time format.
    • timeFormatType

      public FormatConfig timeFormatType(String formatType)
      Sets custom time format type.
    • customFormatTypes

      public FormatConfig customFormatTypes(boolean flag)
      Allow the formatType property for text marks and guides to accept a custom formatter function registered as a Vega expression.