
Visualization Grab Bag
Transcript
This transcript is auto-generated. Names and product terms may be wrong.
I found a quick and easy application that will serve a dual purpose. And you guys see it? We got the redesigned VIS setup, which I've demoed, I think a couple of times, recently. And a big shout out to Sarah for helping me make it happen. It was fantastic. Tonight we can have a card-based approach. One of the things that basically makes everything easier is adding new toggle buttons.
So I activated the regression, which we had created when we deployed the moving average, I think a couple of months ago. It was n't working for an unknown reason. So we turned on regression lines, which are basically just a pass-through to what Vega does, and we enable everything they allow. This was also a request from some customers.
We have simple line controls. We definitely want to add the ability to show things like R squared or an equation, but that's a default feature. It did n't work last time. I have no idea why, it worked now and I'm pretty sure it was due to Dear CAD, a fix that fixed custom expression functions, and it just worked.
I was pleasantly surprised when I looked at it and it was super simple . Thank you, thank you all. Hey Jamie, do you think we could display a label or legend? Definitely, because I think with some of these lines that we're adding there, there's no ownership. I think though that we would probably want to be able to create things like a legend for everything on the chart, so each level of the chart having some sort of independent controls, we would probably want that.
And the legend might be the right place to show it. I was playing around with this a bit . But when you want to show the equation or r squared or something like that, there's no ideal place. I mean , I could put it in the top right, hoping it doesn't overlap with anything, which isn't ideal. Or I could give the user controls to select it, but like a legend if you have more than one, that would be perfect.
And now we support having multi here, I can just share very quickly. Um, we support having mul-multiple, so I can just add another one. Yes . Um here and like if I want to, you know, add regression and regression here is, you know, obviously present and I could also add a moving average if I wanted, but suddenly you end up with users who don't know what those are, yeah .
Lots of graphs that aren't very clear on what each one means . So that 's great, though. Yes, everything works, which is great. And I think the user likes the fact that we can make it easier to create these things. But ultimately we definitely want to make them easy to understand and use. So, there is a lot to refine.
Jamie, don't ruin your demo. I don't know if you've shown this before. Maybe you've already shown it in a demo. Did you also show the line options you added? Like the dots and the... No, no. I don't remember if I did. I can definitely show you. So, could you just go through the entire view setup at this point?
I do n't think we've seen 10. Yes, yes, absolutely. I'll create a new view just to start fresh. Yeah, so we've added a bunch of new elements, kind of new controls and stuff like that . Actually, I won't make the date. I'll just do that one...oh, yeah . I should actually show you that this is pretty interesting.
We have a little time range selector for, basically, right inside the view and you can potentially do that as well. You know, you can expose it. You know , now. Oh, we don't actually post it here. We should, we should put this out here . Oh, it's in the field configuration. This is actually something we should think about .
We have...We now have two or at least we have more different types of configurations. This is basically a configuration associated with a given field. You can also see below. We would see something similar in the table, although there are also some table-specific configurations . There are now also login configurations. So, like this for the title or for the labels or something.
Or if we have a number one, we'll also allow you to specify the domain, zero-out it, change, you know, whether it's linear or logarithmic, that kind of thing. Or add reference lines. We should definitely support domains and baselines for some time, but we haven't done that work yet. The specific functionality that Ariel was pointing out, we basically have the control for when I sent them the moving average, we basically exposed some of the Vega controls for the line, the line that was the moving average.
So, like showing how thick it was, but we didn't actually support it for the main series type, which wasn't there. So now we have the ability to play with these things and, you know, change the interpolation. There is certainly a lot of room for improvement in all of these things. As if you didn't know that numbers are a great way to describe opacity or that these names are not a great way to describe tweening.
We can definitely simplify it and have some nice little icons and things to show it off. But we also have controls like that. And I think we now also support line customization in the area. We haven't actually developed the controls for the bars and dots yet. For example, for points you might want to control the shape or size of the shapes.
If there is no size encoding present in the chart, we haven't done it yet. Can you show the points quickly? It's something we have now, right? Yes, here, this is how to see the points. Yes, that's it. Yes. Um, you can now also turn off the line for the area chart. So, we're good to go . We're starting to get to...I'd like to add the gradient, you know , that column you showed.
We can have controls like that . It would make a lot of sense here. Even for the bars, even being able to control a gradient or something like that would be really cool or, you know, the spacing between things that you want. I think there are a lot of controls we can do that are actually out of the box with Vega, we just need to find ways to simplify them for users and have them have progressive complexity as they go through the setup.
And so I'm sorry too Derek, I can barely see anyone, so I just saw you raise your hand. So I wanted to point out two things while we're here. One is just to help understand it. This. This is perhaps more of an engineer's view of the world than a user's, and we should refine it. But everything that comes down from there, I don't know if you can see where my mouse is pointing, everything that comes down from that selection icon and then also everything that comes from this access control , it just affects the display.
These are all view controls that take the data you have and influence the view. On the other hand, this drop-down menu that modifies the query. That is, if you make changes here, it will also affect the table query. It 's not the best organization and we should refine it and it's a bit of an engineering idea that shines through, but ...
And too quickly I wanted to talk about the x-axis control here. This is where we have the sort control I inserted. Yes. Yes, and we also have field sorting. So there's definitely some resolution that we need to make, like... Yeah, so this sort control is currently a numeric or time axis. Although I realize they might have some bugs and I need to go check again today.
Fantastic. Because of JavaScript's penchant for turning numbers into strings. By default, we sort time axes in ascending order regardless of the query , because that's almost certainly the best thing to do. But if you really just want the sort order that the query gets , you can go here and say no sort. Yeah. And basically just to be super explicit as well for people who...
So this basically overrides the basic sort order in the query. The field itself is literally the sort order in the query. So it should always match the data table. And then I guess I'm actually not sure if it's applied correctly. Or maybe I did it wrong. But yes. Oh, yes. And I have some follow-up work to do a better job of matching the query more often, especially with regard to pivot sorts.
And I have a whole collection of things in my head that I hope will soon turn into problems and then priorities. But that was fixed by, like, just putting that override in, fixing some pretty critical bugs. And so that was step one, and steps two, three, and four are coming. Yes. Yes. And it should be consistent throughout.
So if you find any weird spots, especially people in the industry that kind of things don't work, you know, in the pie stuff or in, you know, in Oh, yeah, we don't have latitude and longitude here, but in the maps or something like that, uh definitely, definitely scream. Uh I have a quick question that I got from the industry today.
I'm not sure this is the right thing for me. This is my first demo session, so please shut me up if I need to. Yes, yes, damn. Um, so, you know, on that bar chart, is it possible to conditionally format the colors of the bar chart ? So, let's say if it's less than 10,000, make it red and otherwise, default to blue?
What you would like to do is create a column in the table, probably like a calculation, that says like value to my left is greater than 10,000, and then color based on that value. Yes, just to show everyone, I can do this very quickly as a simple But it is, but it is, but it will always be like this, because you do the same for a case statement where if the brand is the same as Levi's, make it blue and make everything else.
I mean, we'd probably like to make the math a little easier to touch, but I think Jamie will probably be able to do that right away. Yes, so as a simple example Jamie. Yes. Oh, yes, here it is. Yeah, basically this is a kid like whether or not it's uh I don't remember what the definition is, but I think 18 or something like that uh two and you can still see that by default it's going to color based on that.
So it's like it actually has an indicator on. This could also be a calculation. Yes. Make it to a size, Jamie, just so you understand. So the color is child and then you do like Yeah. Um, you do like B B1 greater than 3,000. Looks good. Um, just as a free demo of Richard's calculations , while we're at it.
Yes. Oh yes, here it is. That's awesome. Yes, so I'll try it now. I love it. Boom. And so this Oh yeah, this Look at that. Here you go . That's exactly what they asked for. Thank you. It's like all these little pieces fit together really, really well. Yes.