influxdata / giraffe

A foundation for visualizations in the InfluxDB UI
https://influxdata.github.io/giraffe/
MIT License
183 stars 34 forks source link

SimpleTable: small Plot sizes render nothing even when there's data #823

Closed TCL735 closed 2 years ago

TCL735 commented 2 years ago

A small Plot size renders a blank space for SimpleTable even when there is data. This is confusing to the user, because a blank space may indicate something is wrong with the query or the data returned from query, when in fact, the issue is really just the minimum size required by SimpleTable to render anything. See the videos below.

A possible suggestion for when there is data:

By the doing the above, the user is given a hint that the Plot should be resized to see the data, rather than be unintentionally misinformed about the results of the query.

UI:

https://user-images.githubusercontent.com/10736577/196504277-dac50de1-1003-45aa-a52b-2ffd25df1940.mov

Storybook:

https://user-images.githubusercontent.com/10736577/196504401-800d7d08-0b60-422b-95c4-37e62ac2dcec.mp4