Custom D3 datetime formatting not showing with adaptive
datetime option
#31790
Labels
viz:charts
Namespace | Anything related to viz types
adaptive
datetime option
#31790
Bug description
The new PR introduced custom D3 datetime formatting.
However, it works partially - when datetime format is forced to
%b
,%B
for example.When the datetime is set to
Adaptive
, the custom datetime format ignored reverting back month names to English.How to reproduce the bug:
Add a custom D3 Time format to
superset_config.py
:Create a virtual dataset with some data (PostgreSQL syntax):
Create a line chart with
start_date
on the X-axis,random_integer
on the Y-axis:Change X-axis datetime format to
%B
, note the changes:Screenshots/recordings
Another example related to the same behaviour:
The custom D3 datetime format shows up when a certain datetime format applied, for example
%B
:But in case an
adaptive
formatting applied on the X axis, the E3 formatting is reverting back to defaults (English):Superset version
4.1.1
Python version
3.9
Node version
16
Browser
Chrome
Additional context
No response
Checklist
The text was updated successfully, but these errors were encountered: