Sparse labels via advanced vis

Visualization Workbook Dashboards · Friday Demos · August 9, 2024 · 1:47

A quick demo of an advanced vis with sparse data labels as we build out native coverage

Transcript

This transcript is auto-generated. Names and product terms may be wrong.

  1. I have a really quick one actually um it's an advanced Fizz that's the only thing I ever get to demo um so this is a little bit of a hack now um as sort of a stop Gap but a really common request that we get is uh let's make a new tab um is label density so uh very commonly if you build a chart and you put data labels on it you'll get a situation that looks like this um and uh I've got actually a community article up about like sort of selectively hiding these and you can write calcs to do it and things like that um and that's one option um but one thing I discovered actually editing our waterfall chart because we had

  2. some slices that were too small is that Vega has a pretty good pattern for hiding labels you just put opacity on things um and so what I did over here is I created a few calculations that essentially just look at the row and they apply a mod to the row so this picks every five labels and then it will hide labels so if we do every single label every other label every third label every fourth label um and obviously this is not how we're going to support this in the long term but it's a really simple pattern to just drop this transform in with a small opathy control and you can plot sparse labels so um if people desperately need this this for a single

  3. chart um kind of the same way that we would offer you know Advanced as an option this is a cute little um control to sparse things out so that is it