mirror of
https://github.com/apache/superset.git
synced 2026-04-21 17:14:57 +00:00
New options for european time format in in D3_TIME_FORMAT_OPTIONS (#4364)
* Update installation.rst for Ubuntu 16.04 LTS Ubuntu 16.04 by default install python2.7 alongside with python 3.5 and set python2.7 as default. If you have created a virtualenv with python3.5 compilation fails due to wrong python-dev library installed. If you install ``python3.5-dev`` the build for the wheel package of ``cryptography`` run fine. * Add options in D3_TIME_FORMAT_OPTIONS for non-english Time Format. Added '%d/%m/%Y' and '%d/%m/%Y %H:%M:%S' as valid drop-down option for Axis Format
This commit is contained in:
committed by
Maxime Beauchemin
parent
19a0827d1f
commit
a4ecff4e23
@@ -26,9 +26,11 @@ const SERIES_LIMITS = [0, 5, 10, 25, 50, 100, 500];
|
||||
|
||||
export const D3_TIME_FORMAT_OPTIONS = [
|
||||
['smart_date', 'Adaptative formating'],
|
||||
['%d/%m/%Y', '%d/%m/%Y | 14/01/2019'],
|
||||
['%m/%d/%Y', '%m/%d/%Y | 01/14/2019'],
|
||||
['%Y-%m-%d', '%Y-%m-%d | 2019-01-14'],
|
||||
['%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'],
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user