Vis Mapping

Friday Demos · September 29, 2023 · 4:44

Transcript

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

  1. I'll give you something real quick uh assuming my instance doesn't explode on me I guess I'll find out share this guy yeah cool so um as most of you all of you probably know at the moment um there's only we only support the ability to support uh one field on the x-axis at any given point or one dimension basically on the independent axis anytime you add an additional Dimension um those uh those I guess slices of those those combinations of the uh um Dimension values won't actually get concat what will happen is that additional Dimensions will help slice up the existing bar almost like in a pivot chart Style kind of Vis but now uh by default when you add additional Dimensions although city is

  2. probably not the best one to show let's do something simple like gender and Country when you add additional Dimensions those Dimensions will get added to the x-axis and as you can see um all these additional Dimensions get added I can go and move this off or if I don't want country to be included in this uh this concat field I can have country act as one of the slicing agents and have just gender and Status um be in the cat level I can of course get back to what we do right now which just support only a single Dimension and have these other dimensions active slicing agents so yeah you put can you put measures in there too I don't know why you would but

  3. I'm just sort of curious I haven't tried that but let's let's find out uh let's start small with just status let's see what happens nothing happens which is probably not what you want um yeah I probably have to look into that because I think right now what I'm doing is just uh pulling the dimensions that are added on to like the omniviz config uh under the hood long story short I probably I don't know what I should do here but we should probably do something here instead of do nothing so wouldn't it what would make sense would we just not let you put a measure there if you already have a dimension no I mean I think we should let you put I think it's

  4. a nonsense chart at some level but I don't think it's terrible to be able to write like complete Dash 500. and then still have the order as we count on the chart I don't think it's a common use case but I think the positive is just make the chart it just makes it robust to everything that a user does so it's just like if you put stuff on it we do stuff with it yeah makes sense uh yeah but that's kind of the gist of the demo um still very much in progress uh testing will be or getting make sure that our test cases cover as much of this as possible will be fun um but outside of that yeah it's pretty much working as

  5. far as I know so getting pretty close to getting this into Maine really cool um how will this interact with sort so good question right now um like sort should work although there's probably edge cases that I'm not thinking of but if I just wanted to I don't know sort off of order items that'll work that should work um let me see all of these aren't it is it is probably going to turn the whole thing into a string and then sort that string and so if we if we want if we want to do a smarter sort where it's oh the the string is sorted as a string but then the number is sorted as a number where we're gonna have to probably write

  6. some code to tell Vega exactly what it is we wanted I'm more just if it matches the table I think I'm happy yeah I think that's if you if you put the x-axis there to no sort it like you get back into some of the oh you'll get back yeah for a basic bar chart it should just match the table but if you start doing layered stuff or pivots yeah yeah that will sometimes not match the table this is what I wanted it's just making sure that this happens as opposed to like some magical resorting that's happening yep yeah go into that x-axis thing and click and click sort ascending and I suspect you'll get the alphabetical sort versus sort and so we should decide

  7. whether that's what we want or whether we want to just disable that in this case or whether we need to do some code there but the the default for this will be no sort yeah I think that's fine that's me