trame: legend lost in LocalView

In the trame tutorial ./05_paraview/StateLoader.py , if I change it to LocalView, the legend will be lost.
I’m using windows 11, PravaView 5.11. Please check:
In the Paraview, there is legend -


But in the web browser, the legend is lost -

I think this is a bug.

That issue is related to the fact that ParaView is wrapping the scalar bar into a widget which get skipped into vtk.js, hence missing in the LocalView.

That issue is aiming to track it down.

Hi Sebastien, will vtk.js support widgets in the future, or is there a solution on Paraview’s side?

vtk.js do support its own widgets. We just need to start mapping the VTK/C++ one to the vtk.js world. It will happen but it might be slow to get all of them within vtk.js. Although the scalarbar/actor2d one should not be too hard to do.

OK, thanks for your reply.

Just ran into this. Is there a solution for this problem now? I saw that wasm does not support Paraview yet.

wasm with ParaView is work-in-progress. We may start getting some support for 5.13 but probably much better support for ParaView 5.14.

Thanks for your response. Is there anyway to get the legend with localview, with the current web/app versions of Paraview?

yes, the solution was posted on another discussion on that topic.