From the course: Interactive Dashboards with Plotly and Dash

Unlock this course with a free trial

Join today to access over 25,500 courses taught by industry experts.

Multiple input callbacks

Multiple input callbacks

- [Instructor] Okay, so we actually got a glimpse of this when we looked at date range pickers. We saw callback functions that had multiple calls to our input function. Let's go ahead and formalize this and take a look at some of the other examples of applications that have multiple inputs. And just in case it wasn't clear, a single callback function can have multiple inputs. This lets us add multiple interactive elements to the same application in addition to handling things like the two dates that come out of our date picker range. Let's take a look. So, in this example, we have two dropdown menus. One's called X column and one's called Y column. If you recall, in one of our earlier examples, we had a scatter plot that plotted an X column chosen by the user versus a fixed Y column. But if we have the ability to embed multiple dropdown menus, we can allow users to select both an X and a Y column. We still might fix them and specify a default value based on what we think the user's…

Contents