Axis Formatting
  • 16 Mar 2023
  • 1 Minute to read
  • Dark
    Light

Axis Formatting

  • Dark
    Light

Article summary

Custom formatting gives you greater control over how numeric data is displayed in a Preset chart. With custom formatting, you can apply the D3 python library formatting options to numeric data shown in visualizations.

Each type of visualization will have different customization options.
You can change the format of what is displayed when you see the below options:
image.png

By default, Preset will give a default format using Adaptive Formatting, but you can change the format either by clicking on another available option or typing the corresponding D3 formatting option

Date Formats

FormatDescriptionExample
%aWeekday, short versionWed
%AWeekday, full versionWednesday
%wWeekday as a number 0-6, 0 is Sunday3
%dDay of month 01-3131
%bMonth name, short versionDec
%BMonth name, full versionDecember
%mMonth as a number 01-1212
%yYear, short version, without century18
%YYear, full version2018
%HHour 00-2317
%IHour 00-1205
%pAM/PMPM
%MMinute 00-5941
%SSecond 00-5908
%fMicrosecond 000000-999999548513
%zUTC offset+0100
%ZTimezoneCST
%jDay number of year 001-366365
%UWeek number of year, Sunday as the first day of week, 00-5352
%WWeek number of year, Monday as the first day of week, 00-5352
%cLocal version of date and timeMon Dec 31 17:41:00 2018
%xLocal version of date12/31/18
%XLocal version of time17:41:00
%%A % character%

Other Formats

For other formats such as numbers or currency, please refer to the D3 Library


Was this article helpful?