No, it's not ignoring it. I think it's just getting confused because it's probably... Yeah. I'm not entirely sure, but it's sort of, it's gonna depend on like what the type of variable is that you're working with, what the type of property is, whether or not you can have a minimum and maximum or whether you can have like a longer array. So I think where we would want to look to find out more about that is in the documentation for these scales. So for like the X scale, I believe it's always gonna expect a minimum and maximum value. And so we can look for the scale documentation to see kind of what is expected here. So let's- Min on the left, max on the right, I see it in the docs. Exactly here. So yeah, so these are gonna be either min, max, min on the left, max on the right or an array of categorical AKA ordinal values as we had in the success, failure, skipped or success, failure, canceled kind of values that we had in the last visualization. Do you guys consider like, would you guys consider changing the API by feedback or I get considering just to, or is it like content? Yeah, I mean, feedback is always welcome. Feedback is definitely welcome. So as we said before, you can search through the issues on the GitHub repo to see if other people sort of agree or have already raised the points whether it's bug report or future request or request for change the API and things like that. And if not, you can submit an issue and let us know what you think. And, but hopefully, so, but in general, like I think the important takeaway for us for today is just this concept of that, like we're mapping on these scales we're mapping from a domain to a range. And even if you don't use plot after this, even if you go on and use Vega-Lite or D3 or some other library, like that core idea that we need to define, okay, here's the domain of data that we're taking in. And then here's the range of pixel values or color, opacities, levels, or what have you that we're putting out. Like that transformation is the kind of main thing I'd like everybody to take away, but absolutely open to feedback on kind of how this API could be more helpful to you.
No, but to be completely honest, for example, in my case, I've never had this experience of the visualization. I think you definitely put that point out, what you were trying to, right now, explain. And I am actually curious about this and seeing more. Awesome. Yeah, thanks again. To follow up on a question, though, I think it's unrelated, but you see the 1400 on the Y axis? The 1400 on the Y axis, around here? Yeah, all the way to the end, there's like a dot. Oh, yeah, uh-huh. Do you know why? Is it because of the 5000 a little bit and it's like reaching it or? Well, in this case, it might be that it's just sort of reaching it. So this is gonna be kind of like, this might be sort of one of those things where if plot was a little bit older of a library and had gone through a few more like edge cases and things that might, that we might be, there might be different defaults for, for example, not showing anything past a certain level. But in general, this is, and you can see it perhaps even more pronounced in the next exercise when we look at the faceting, like how it sort of pops onto the next facet. So there might be some bugs in here. But it's also something to consider of like, when we're talking about the mapping of the domain to the range, we are kind of telling plot like how to do that transformation in that animation that we saw before, we're not necessarily telling plot, hey, I guarantee you, I won't be giving you any values outside of that domain. So that's another thing to consider is like, how does the domain that we're specifying actually correspond to what is in our data? And that's where things like filtering and maybe making, like doing that data wrangling upfront to make sure that you only have the types of values that you're expecting. Like you wanna maybe throw out data points above a certain level or with a certain characteristic or something like that. That's another thing to consider in terms of the sort of correspondence between what you're telling plot to expect and what you're actually throwing at it, if that makes sense.
Thanks for the answer. And to get into more in detail, to get into more of the subject of datavis, as you mentioned, to get the broader idea and everything and to understand how can I use this in my advantage or in my needs. You did mention D3 twice at the start right now with another library, which I have not actually heard, which is why I'm focusing on D3. And my question is, how does this relate to plot, right? How do they, are they like, is one based on the other, is one solve a different problems or? Yeah, there, I would say they're kind of solving different problems. So plot and D3 are both created by Mike Bostock. So like literally the same person came up with both of them. And D3 is a very, it's a much lower level library. So it's very powerful and very customizable, but it can also be kind of a lot of like legwork and a lot of boiler plate or just a lot of a kind of thinking that you have to do to even get to like a very simple visualization. Or for example, doing this kind of faceting out, right? It's like takes a fair bit of thinking and work and cognitive load in D3. And so plot is intended to not be quite as customizable, not be quite as flexible, or maybe as powerful, and maybe it doesn't have all of the bells and whistles and like supercharged capabilities of D3, but it's intended to allow you to get to a meaningful visualization as quickly as possible. So that's where as we can see, in the faceting, we added one line basically to our plot and that turned one plot into three, right? So when we added that one facet line, so we go from our having our regular scatter plot to having three different ones that are broken up based on a category of the data or a feature of the data. And the idea with plot is that it is more geared towards like data exploration. So here we're kind of quickly trying to get up to speed, understanding this dataset and seeing what's going on. And what we're gonna talk about before we put this exercise to bed is sort of seeing like, what can we see here? Well, certain patterns emerge, right? Like we can see, we can quickly see some aspect ratios that are popular. We can see that, for example, people on mobile seem to be very much in portrait mode and not in landscape mode so much. And that's maybe a little bit easier to see once we split these out, we can see like same story or actually on tablet it seems like they're more split between the two different orientations. So those kinds of things, like trying to just very quickly go from, I have no code in front of me right now to I wrote five lines of code and now I understand my data better, that data exploration is really what PLott is intended for. And that's why I think it's great for folks like us who are maybe web developers. We're not like full-time data visualization developers that are working on really complex data visualizations. Maybe, maybe we are, maybe we're gonna go on to be. But we wanna understand our data as quickly as possible. And so that's really what PLott is intended to be able to do. Whereas D3 is sort of intended to be able to, like you can build your own Lego spaceship versus, like out of little tiny pieces versus like a Lego kit where it comes with more, bigger units. And you can just kind of quickly put them together and get a really cool X-Wing fighter or whatever. So if that helps, that's sort of one of the ways you can think about their different use cases. And I think we have some more documentation that I can send to you all about PLott and D3 as well to answer that question. So yeah, okay. Oh yes. Our workshop is going until two minutes from now. So I'm a little bit afraid that we are a bit behind schedule and may not be able to get through the next exercise. But let's take a look at it together. And yes, I will share it with you all right now. Okay. So before we move on from the browser sizes, I just wanted to, again, sum up. So what we've done here is we've gotten a little bit more used to some more advanced stuff like grouping, aggregations, faceting to split things apart. We've looked at a few more edge cases of like scales and transforms and things like that.
Comments