Python Data Visualization Transcripts
Lecture: Reference example
0:00 I wanted to leave you with a quick summary of what we did with that last
0:05 visualization so that you can refer back to this when you're developing your own custom altair
0:11 visualizations. So here's the code that created it and now that you've gone through this chapter, hopefully it makes a lot more sense to you.
0:20 So to walk through this briefly we created our chart with our circles. Then we told it that X and the Y axis are the year and the author
0:29 we control the size of the bubbles based on the total number of reviews. We also control the legend and scale.
0:37 We put a color in there for each author to distinguish and then we added an
0:42 axis and configured the transformation so that only our top authors are shown.
0:48 And then we adjusted the properties to have the width and the height that makes more
0:53 appropriate viewing of this visualization. So I think this is a really nice summary of
0:58 all the things that you can do with altair and we'll summarize in the next section how you should think about altair in the context of all your visualization needs.