From the course: Interactive Dashboards with Plotly and Dash
Unlock this course with a free trial
Join today to access over 25,300 courses taught by industry experts.
Plotting multiple series
From the course: Interactive Dashboards with Plotly and Dash
Plotting multiple series
- [Instructor] So we've seen this briefly, but I just want to reiterate that we can plot multiple series. And a lot of the charts are going to be dependent on using that color argument. So if we take a look at our education dataframe, we have a categorical variable state. We have year and we have total expenditure. And so if I just filter my data down to two states, if I don't, we'll have 50, we can go ahead and plot year, total expenditure, specify color equals state, and give it a little title. And we'll end up splitting our data based on that color variable. And so specifying color equals state will end up giving us a line for each of our states in our dataframe. The same is true for charts like bar charts. And so here again, we're filtering our dataframe down to California and Massachusetts. Our X is year, our Y is total expenditure. And again, this might be best represented as a line chart. But just using the same piece of data, specified color equals state, and we end up with a…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
(Locked)
Intro to Plotly charts6m 2s
-
(Locked)
Demo: Plotly graph objects7m 38s
-
(Locked)
Demo: Plotly Express9m 30s
-
(Locked)
Basic Plotly charts2m 50s
-
(Locked)
Demo: Scatterplots and line charts6m 19s
-
(Locked)
Assignment: Line charts1m 51s
-
(Locked)
Solution: Line charts5m 2s
-
(Locked)
Plotting multiple series3m 50s
-
(Locked)
Demo: Bar charts5m 21s
-
(Locked)
Assignment: Bar charts2m 51s
-
(Locked)
Solution: Bar charts2m 20s
-
(Locked)
Pro tip: Bubble charts3m 1s
-
(Locked)
Pie and donut charts6m 23s
-
(Locked)
Assignment: Donut and bubble charts2m 6s
-
(Locked)
Solution: Donut and bubble charts5m 16s
-
(Locked)
Histograms4m 37s
-
(Locked)
Update methods5m 4s
-
(Locked)
Demo: Updating layout and traces7m 51s
-
(Locked)
Demo: Updating X and Y axes5m 47s
-
(Locked)
Adding annotations7m 54s
-
(Locked)
Assignment: Chart formatting1m 52s
-
(Locked)
Solution: Chart formatting3m 5s
-
(Locked)
Choropleth maps5m 32s
-
(Locked)
Demo: Choropleth maps7m 1s
-
(Locked)
Mapbox maps5m 23s
-
(Locked)
Demo: Density maps2m 4s
-
(Locked)
Assignment: Maps1m 43s
-
(Locked)
Solution: Maps1m 43s
-
(Locked)
Key takeaways2m 36s
-
(Locked)
-
-
-
-
-