Better label handling (launched, bit more to do)

Nate Agrin · Friday Demos · July 12, 2024 · 2:40

Better label handling with clipped axes

Transcript

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

  1. can I go first because I gotta jump kind of early of course um I've been making a couple improvements kind of quietly to to the charts uh so one that went out last week was um it used to be that uh by default on certain types of charts like line charts in particular if you started adding multiple measures we would start by applying the first measure to the to one y axis and then the following measures to uh a secondary Y axis just causing some pain with some users so now um all like measures get added to uh the first y AIS pretty small thing but some customers have noticed so that's kind of cool and then this week uh I was working on this

  2. issue that's been outstanding for a while around uh labels get clipped in certain context in particular you change like the Min and Max domain of a chart so like an example of this it's subtle but you'll see here this uh value is actually clipped off and um it's actually almost unacceptably complicated to fix this in Vega but uh I've got it mostly working so you can see like this label is no longer clipped off but the data points are correctly uh filtered out and it works on regular bar charts and now I'm just battling how to make it work in conjunction with totals so this is bizarrely Vega's default rendering behavior when you provide Ed A Min and Max it basically still tries to render

  3. everything but just shrinks the axes down which is one of the silliest default behaviors I've ever seen um so once I get this sorted um yeah this should go out in the next week or so and then yeah I guess I was I think I'm going to hold the demo for next week with the other performance improvements but there are a bunch of other performance it's coming on the pipe that I think will be worth showing next week