Skip to content

Commit

Permalink
Added: New D3 time format option
Browse files Browse the repository at this point in the history
  • Loading branch information
kalyan540 committed Dec 20, 2024
1 parent 0b13531 commit 40212d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ export const D3_TIME_FORMAT_OPTIONS: [string, string][] = [
['%Y-%m-%d %H:%M:%S', '%Y-%m-%d %H:%M:%S | 2019-01-14 01:32:10'],
['%d-%m-%Y %H:%M:%S', '%d-%m-%Y %H:%M:%S | 14-01-2019 01:32:10'],
['%H:%M:%S', '%H:%M:%S | 01:32:10'],
['%b\'%y', '%b\'%y | Jan\'23'],
];

export const DEFAULT_NUMBER_FORMAT = D3_FORMAT_OPTIONS[0][0];
Expand Down
1 change: 1 addition & 0 deletions superset-frontend/src/explore/controls.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ export const D3_TIME_FORMAT_OPTIONS = [
['%Y-%m-%d %H:%M:%S', '%Y-%m-%d %H:%M:%S | 2019-01-14 01:32:10'],
['%d-%m-%Y %H:%M:%S', '%Y-%m-%d %H:%M:%S | 14-01-2019 01:32:10'],
['%H:%M:%S', '%H:%M:%S | 01:32:10'],
['%b\'%y', '%b\'%y | Jan\'23'],
];

const timeColumnOption = {
Expand Down

0 comments on commit 40212d9

Please sign in to comment.