Multilayer time axis should read dow
from moment locale
#2361
Labels
:axis
Axis related issue
enhancement
New feature or request
:timeslip
Timeslip related issues
:xy
Bar/Line/Area chart related
Is your feature request related to a problem? Please describe.
In the multilayer time axis we hard code the start day of the week to
1
(aka Monday). This does not allow the chart consumer to change this to adapt to the data.elastic-charts/packages/charts/src/chart_types/xy_chart/axes/timeslip/continuous_time_rasters.ts
Line 320 in 3bddec8
Demo
See demo here.
Describe the solution you'd like
The start day of the week should be driven by the
moment.localeData().firstDayOfWeek()
Describe alternatives you've considered
N/A
Additional context
This only applies to the tick placement and labels, not the placement of the rendered geometries.
Kibana Cross Issues
elastic/kibana#178115
Checklist
Kibana Cross Issues
listkibana cross issue
tag is associated to the issue if any kibana cross issue is presentThe text was updated successfully, but these errors were encountered: