[Bug] Visualization designer does not handle longer legends
Summary
Within the visualization designer, when the legend gets lengthy, the designer doesn't resize to show the chart and renders only part of the legend list.
Steps to reproduce
- Visit the visualization designer on a project with a good amount of varied data e.g. https://gitlab.com/gitlab-org/gitlab-services/design.gitlab.com/-/analytics/dashboards/visualization-designer
- Select a measure and dimension with a lot of different data points .e.g
Page views > All pages + Events grouped by week + Page URL
- Select the
Line chart
visualization type.
Example Project
What is the current bug behavior?
The chart is not shown and only part of the legend list is rendered.
What is the expected correct behavior?
The full chart and legent list should be shown.
Relevant logs and/or screenshots
Possible fixes
The visualization preview is currently set to a height of 600px
due to a previous height bug: !114723 (merged). We could look at being smarter with our height calculation.