influxdata / influxdata/ui

new data explorer charts not updating x axis when time range changes

Open
#5,099 2 comments 0 reactions 3 assignees Claimed by @drdelambre View on GitHub
kind/bug team/automation team/ui
Dominant language
TypeScript
Stars
117
Forks
51
Avg merge
2d 15h
Merged PRs (30d)
4

Description

## About the bug

**Steps to reproduce:**
List the minimal actions needed to reproduce the behavior.

1. Set a time range in the dropdown to 3h using v.timeRangeStart and v.timeRangeStop
2. run the query
3. Change the time range using the UI dropdown to 1h

**Expected behavior:**
the graph refreshes with the x axis focused on the chosen time range

**Actual behavior:**
the data refreshes but the axis does not change. The steps above make the bug obvious, but the same error occurs going from a smaller time range to a larger one, but in this case the whole range of the graph is filled and user may not notice the error unless they read the axis labels.

Further, it appears that when the time range shifts based on "last 5m" that the chart similarly does not update.

NOTE: double clicking the chart updates the axes.

**Visual Proof:**
3 hour:
![Screen Shot 2022-07-18 at 11 01 57 PM](https://user-images.githubusercontent.com/25036188/179655452-d2d8063f-dd26-41af-bc23-cf82b373f76f.png)

1 hour:
![Screen Shot 2022-07-18 at 11 02 10 PM](https://user-images.githubusercontent.com/25036188/179655467-c2e177d0-8dec-4970-b4b6-d4aafec347f7.png)

after double click:
![Screen Shot 2022-07-18 at 11 02 21 PM](https://user-images.githubusercontent.com/25036188/179655478-3a984af3-5f0a-4490-85de-31d627778c33.png)

## About your environment

**Environment info:**

cloud2 UI

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.