# trame: legend lost in LocalView

**URL:** https://discourse.paraview.org/t/trame-legend-lost-in-localview/10469
**Category:** Web Support
**Created:** [October 9, 2022, 3:13am UTC](https://discourse.paraview.org/t/trame-legend-lost-in-localview/10469 "2022-10-09T03:13:37Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![Jimmy-KL](https://discourse.paraview.org/user_avatar/discourse.paraview.org/jimmy-kl/32/10125_2.png) [@Jimmy-KL](https://discourse.paraview.org/u/Jimmy-KL)
#### Post date: [October 9, 2022, 3:13am UTC](https://discourse.paraview.org/t/trame-legend-lost-in-localview/10469/1 "2022-10-09T03:13:37Z")

</div>

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 -

 ![image](https://discourse.paraview.org/uploads/default/original/2X/e/e979095c4d0c5575a03d8ece0d3b2605b8c7017d.jpeg)  
But in the web browser, the legend is lost -  
 ![image](https://discourse.paraview.org/uploads/default/original/2X/7/76acd7cfd365a97cbd1067abe8890a4d30ed06de.jpeg)  
I think this is a bug.

---

<div class="post-metadata">

### Author: ![jourdain](https://discourse.paraview.org/user_avatar/discourse.paraview.org/jourdain/32/11_2.png) [@jourdain](https://discourse.paraview.org/u/jourdain)
#### Post date: [October 11, 2022, 3:32pm UTC](https://discourse.paraview.org/t/trame-legend-lost-in-localview/10469/2 "2022-10-11T15:32:21Z")

</div>

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](https://github.com/Kitware/trame/issues/101) is aiming to track it down.

---

<div class="post-metadata">

### Author: ![Jimmy-KL](https://discourse.paraview.org/user_avatar/discourse.paraview.org/jimmy-kl/32/10125_2.png) [@Jimmy-KL](https://discourse.paraview.org/u/Jimmy-KL)
#### Post date: [October 12, 2022, 2:46am UTC](https://discourse.paraview.org/t/trame-legend-lost-in-localview/10469/3 "2022-10-12T02:46:02Z")

</div>

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

---

<div class="post-metadata">

### Author: ![jourdain](https://discourse.paraview.org/user_avatar/discourse.paraview.org/jourdain/32/11_2.png) [@jourdain](https://discourse.paraview.org/u/jourdain)
#### Post date: [October 12, 2022, 3:22am UTC](https://discourse.paraview.org/t/trame-legend-lost-in-localview/10469/4 "2022-10-12T03:22:31Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![Jimmy-KL](https://discourse.paraview.org/user_avatar/discourse.paraview.org/jimmy-kl/32/10125_2.png) [@Jimmy-KL](https://discourse.paraview.org/u/Jimmy-KL)
#### Post date: [October 12, 2022, 6:10am UTC](https://discourse.paraview.org/t/trame-legend-lost-in-localview/10469/5 "2022-10-12T06:10:23Z")

</div>

OK, thanks for your reply.

---

<div class="post-metadata">

### Author: ![jmythms](https://discourse.paraview.org/user_avatar/discourse.paraview.org/jmythms/32/14945_2.png) [@jmythms](https://discourse.paraview.org/u/jmythms)
#### Post date: [July 31, 2024, 12:44pm UTC](https://discourse.paraview.org/t/trame-legend-lost-in-localview/10469/6 "2024-07-31T12:44:42Z")

</div>

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

---

<div class="post-metadata">

### Author: ![jourdain](https://discourse.paraview.org/user_avatar/discourse.paraview.org/jourdain/32/11_2.png) [@jourdain](https://discourse.paraview.org/u/jourdain)
#### Post date: [August 6, 2024, 4:12pm UTC](https://discourse.paraview.org/t/trame-legend-lost-in-localview/10469/7 "2024-08-06T16:12:36Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![jmythms](https://discourse.paraview.org/user_avatar/discourse.paraview.org/jmythms/32/14945_2.png) [@jmythms](https://discourse.paraview.org/u/jmythms)
#### Post date: [August 6, 2024, 5:52pm UTC](https://discourse.paraview.org/t/trame-legend-lost-in-localview/10469/8 "2024-08-06T17:52:46Z")

</div>

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

---

<div class="post-metadata">

### Author: ![jourdain](https://discourse.paraview.org/user_avatar/discourse.paraview.org/jourdain/32/11_2.png) [@jourdain](https://discourse.paraview.org/u/jourdain)
#### Post date: [August 7, 2024, 4:06pm UTC](https://discourse.paraview.org/t/trame-legend-lost-in-localview/10469/9 "2024-08-07T16:06:19Z")

</div>

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