Skip to content

X-Axis doesn't respect timepicker for date histograms, + other oddities #30138

@ebalmeida

Description

@ebalmeida

Kibana version:
v 6.4.1
Elasticsearch version:
v 6.4.1
Server OS version:
CentOS 7.5
Browser version:
Chrome 71.0.3578.98
Browser OS version:
Windows 10 - 1809
Original install method (e.g. download page, yum, from source, etc.):
tar
Describe the bug:
When I set the interval to monthly or yearly on a date histogram (vertical bar) visualization, the x-axis seems to ignore limits set in the timepicker and the labels behave erratically (labels don't respect the "filter labels" option, labels repeat if not enough buckets are present).
Took suggestion to post it as an issue as per: https://discuss.elastic.co/t/x-axis-labels-and-limits-on-date-histogram-based-on-the-interval/167020
Steps to reproduce:

  1. Create a date histogram based on a date value
  2. Set the interval manually
  3. Change time span on the time picker

Expected behavior:
X-axis should be limited by whathever was stipulated on the timepicker.
Labels should all show up if "filter labels" is not selected.
Labels should not repeat if there is a small number of buckets.

Additionally, if the chart style is bar, it would make more visual sense if the time label is centered on the bucket instead of coming before the bucket.
Screenshots (if relevant):
image
image
image

Metadata

Metadata

Assignees

Labels

Feature:XYAxisXY-Axis charts (bar, area, line)Team:VisualizationsTeam label for Lens, elastic-charts, Graph, legacy editors (TSVB, Visualize, Timelion) t//bugFixes for quality problems that affect the customer experience

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