Skip to content

TSVB chart doesn't render when axis min is outside data range #73167

@lukasolson

Description

@lukasolson

Kibana version: 7.9

Elasticsearch version: 7.9

Describe the bug:

When using TSVB, and setting the axis min/max, if the min is set to lower than the max, you get an error message and the chart doesn't render:

node_modules\@elastic\charts\dist\chart_types\xy_chart\domains\y_domain.js:113 Uncaught Error: custom yDomain for yaxis_2e91f9d0-cd39-11ea-8e53-15bf965b677f_main_group is invalid, custom min is greater than computed max

Steps to reproduce:

  1. Create a new TSVB chart
  2. Click on Panel options, and set the Axis min to something greater than the max from the dataset (or set the min to something greater than the max)

Expected behavior:

An empty chart would render (as when you set the min/max to something outside the data range

Screenshots (if relevant):

Prior to setting the min:

image

After setting the min:

image

Metadata

Metadata

Assignees

Labels

Feature:TSVBTSVB (Time Series Visual Builder)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