vega-lite icon indicating copy to clipboard operation
vega-lite copied to clipboard

Dynamic (default) label angle

Open kanitw opened this issue 1 year ago • 1 comments

Right now, for discrete x-axis, we always rotate our labels. However, we can have a better dynamic default like in this spec.

image image

However, note that Vega sometimes doesn't update the layout correctly so we may need to update Vega's axis layout to account for signal based updates too.

kanitw avatar Jul 08 '22 16:07 kanitw

We should discuss what the cutoff size for this would be. Also, there should probably be an escape hatch like

{
  config: { dyamicLabels: bool } // default true
}

lsh avatar Aug 17 '22 23:08 lsh

When we resize the chart, sometimes the size is a bit off like this.

image

kanitw avatar May 23 '23 00:05 kanitw