Possible in Dash?

I work for a policy think tank and we want to create an interactive policy simulator for a universal basic income. Essentially the user will be able to change some tax rates, it will automatically pump the revenue increase into a UBI and then spit out some charts that show the impact.

We know how to generate the data but we are looking for the best way to have the user have a simple experience. We love the Tax Justice Now site. If you scroll to the bottom of the page you will see how you can slide bars and change numbers and it spits out the result in real time.

Is it possible to make something like this in Dash? Our simulation would have multiple sliding bars for tax rates and many check boxes to keep or remove current programs.

This is absolutely possible. You’ll want to look at Dash’s Slider component: you can set the min, max, and style it however you want.

With a few sliders in place, it’s just a matter of hooking them up to the chart to update the data in real time. If you’re not familiar, you’ll have to create what’s called a callback to create interactivity in your app.

Check out this page and look at the Dash App With Multiple Inputs section.

Does that make sense?

1 Like

Awesome, appreciate the response.

1 Like

You’re welcome. :slight_smile: