Skip to content

Web [Charts]: Support label rotation and truncation

Created by: vovakulikov

Background

Currently, the bar chart (and all categorical-like charts) have a problem with label overlapping when dealing with many items (bars) datasets. See the image below.

Screenshot 2022-07-19 at 15 24 18

Code Insights compute live preview bar chart

We should

  • Render only the appropriate number of legend items based on their length and available space
  • Rotate labels to increase square for label rendering
  • Truncate label text if they are too long to fit in available label space