It is my first post on this community. Please let me know if I should edit this post in order to help the community. I have read the different similar topic but couldn’t find a working solution.
I have been using Dash for some times and I have the following issue:
I need to create a dcc.RangeSlider with callback.
I succeeded to create the min and the max, but I cannot create the value.
When I am returning a list in the callback, I get the following error:
expected 1 , got 2
Here is the callback:
@dash_app.callback(Output('test_slider', 'value'), [Input('test_dumps', 'children')]) def build_slider_value(test_dumps): list_time =  for i in json.loads(test_dumps): list_time.append(i['time']) return [min(list_time), max(list_time)]
Nonethless, the value for the dcc.RangeSlider is supposed to be a list of two elements.
Any help would be appreciated.