Quantcast
Channel: 🎛️ Dash - Plotly Community Forum
Viewing all articles
Browse latest Browse all 6271

Input and Output controls

$
0
0

I created a chart to visualize plots from a computation done online. The computation uses some controls (Input) and produces plots.

However I would also like to upload a file containing the calculation parameters and trough this to perform the calculation. Reading from the file, however I need to update the status of the controls tat therefore must also be in Output.

So I am in the condition to have Input values from the controls but, if the reading is from an uploaded file, I need to update the same controls. How can I do ?

So: Case 1)
control x-> Value=45 -> Computation(45) -> Plot

    Case 2)
          upload a file _>  Read the value of x = 55 - > Update control x with 55 ->  Computation(55) ->  Plot

Control x is Input in the first case but is Output in the second case. I tried to use two different ccallbacks but it does not work because a control cannot be in Input and in output even if coming from different callbacks

I also thought to use querystring to call again the app and use querystring parameters but it seems not the case.

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 6271

Trending Articles