INNER CODE UNIT · Python

update

burkesquires/python_biologist · 06_data_vis_python/bokeh/server/app/crossfilter/main.py:76

def update(attr, old, new):
    layout.children[1] = create_figure()


x = Select(title='X-Axis', value='mpg', options=columns)
x.on_change('value', update)

y = Select(title='Y-Axis', value='hp', options=columns)
y.on_change('value', update)

size = Select(title='Size', value='None', options=['None', *continuous])
size.on_change('value', update)

color = Select(title='Color', value='None', options=['None', *continuous])
color.on_change('value', update)

controls = column(x, y, color, size, width=200)
layout = row(controls, create_figure())

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…