Hi all,
regarding the exercise of chapter 4 from our dash-online-course the callback solution isn’t working,
you will get error message with debug=True setting;
I have an issue with an appropriate, efficient way of mapping the string colour value to a needed int value.
Exists a specific concept with Plotly - Dash beside implementing our own mapping dictionary?
My callback is by now:
# returns the selected slider title size and title colour
@app.callback(
Output(component_id='our-markdown', component_property='style'),
Input(component_id='our-radio', component_property='value'),
Input(component_id='our-slider', component_property='value'),
)
def update_markdown(value_slider, value_radio):
title_style = {
'fontSize': 12+2*int(value_slider),
'color': value_radio,
}
return title_style
In advance, thanks for help and information!