Skip to content

Multilayer time axis should read dow from moment locale #2361

@nickofthyme

Description

@nickofthyme

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.

Demo

Zight Recording 2024-03-14 at 03 27 43 PM

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

  • this request is checked against already exist requests
  • every related Kibana issue is listed under Kibana Cross Issues list
  • kibana cross issue tag is associated to the issue if any kibana cross issue is present

Metadata

Metadata

Assignees

Labels

:axisAxis related issue:timeslipTimeslip related issues:xyBar/Line/Area chart relatedenhancementNew feature or request

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions