Hello,
Is it possible to select one point in facet-grid plot throught a dash-table-experiments ?
I created a figure as follow:
@app.callback(Output(“facet-grid”, “figure”),
[Input(“AC-dropdown”, “value”),
Input(“FG-dropdown”, “value”),
Input(“PN-dropdown”, “value”),
Input(“cpu_val”, “value”),
Input(“checklist”, “values”),
Input(“my_datatable”,“rows”),
Input(“my_datatable”,“selected_row_indices”)],
[State(‘facet-grid’, ‘figure’)])
def redrawGraph(x, y, color, size, checklist, rows, selected_row_indices, prevLayout):
df2 = pd.DataFrame(rows)
trace = ‘scattergl’
marker = {‘size’:[5].len(df2[‘VALUE’])}
for i in (selected_row_indices or []):
marker[‘size’][i] = 20
if (selected_row_indices):
print("table:",df2.iloc[selected_row_indices])
fig1 = ff.create_facet_grid(
df2,
x='VALUE',
y='PART',
trace_type='scattergl',
marker = marker,
etc…
But with this case, when I select one row in my table, I have this point (size 20) on the 6 facets and not only one facet.
Could you explain how increase the size of the point selected in my table but only one facet ?
Thanks,
Regards,