# Is there any abilities to add a interactive widgets on LineChartView same as 3D widgets on RenderView?

**URL:** https://discourse.paraview.org/t/is-there-any-abilities-to-add-a-interactive-widgets-on-linechartview-same-as-3d-widgets-on-renderview/2273
**Category:** Development
**Created:** [July 22, 2019, 8:20am UTC](https://discourse.paraview.org/t/is-there-any-abilities-to-add-a-interactive-widgets-on-linechartview-same-as-3d-widgets-on-renderview/2273 "2019-07-22T08:20:10Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![e-kolosov](https://discourse.paraview.org/user_avatar/discourse.paraview.org/e-kolosov/32/2375_2.png) [@e-kolosov](https://discourse.paraview.org/u/e-kolosov)
#### Post date: [July 22, 2019, 8:20am UTC](https://discourse.paraview.org/t/is-there-any-abilities-to-add-a-interactive-widgets-on-linechartview-same-as-3d-widgets-on-renderview/2273/1 "2019-07-22T08:20:10Z")

</div>

Is there any abilities to add a interactive widgets on LineChartView same as 3D widgets on RenderView?  
If it’s possible, then how can I do it? What classes I should to use?

---

<div class="post-metadata">

### Author: ![e-kolosov](https://discourse.paraview.org/user_avatar/discourse.paraview.org/e-kolosov/32/2375_2.png) [@e-kolosov](https://discourse.paraview.org/u/e-kolosov)
#### Post date: [August 28, 2019, 1:27pm UTC](https://discourse.paraview.org/t/is-there-any-abilities-to-add-a-interactive-widgets-on-linechartview-same-as-3d-widgets-on-renderview/2273/2 "2019-08-28T13:27:53Z")

</div>

I implemented the ability to adding interactive widgets on LineChartView and made a few widgets. One of them is ‘Equalizer’. For more details see demo video below.

> **[equalizer-2019-08-28\_15.43.53.mkv](https://www.dropbox.com/s/9ipkpjcj8b6y0ut/equalizer-2019-08-28_15.43.53.mkv?dl=0)**
>
> Shared with Dropbox

  
Now it’s in progress and will be improved but already can be used. If this functionality will be interesting for community then I can prepare merge request and share my code. Is this functionality needed in ParaView?

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [August 28, 2019, 1:45pm UTC](https://discourse.paraview.org/t/is-there-any-abilities-to-add-a-interactive-widgets-on-linechartview-same-as-3d-widgets-on-renderview/2273/3 "2019-08-28T13:45:21Z")

</div>

Looks nice!

Of course, you can add any item you want in VTK, but I think there is a mechanism missing in ParaView to show them like you do, so this would be quite interesting.

FYI, in VTK there is already an item similar to your widget (but definitely not equal). You can see it in the ColorOpacityEditor, when you edit a color map and change the opacity function.

---

<div class="post-metadata">

### Author: ![e-kolosov](https://discourse.paraview.org/user_avatar/discourse.paraview.org/e-kolosov/32/2375_2.png) [@e-kolosov](https://discourse.paraview.org/u/e-kolosov)
#### Post date: [September 2, 2019, 9:16am UTC](https://discourse.paraview.org/t/is-there-any-abilities-to-add-a-interactive-widgets-on-linechartview-same-as-3d-widgets-on-renderview/2273/4 "2019-09-02T09:16:34Z")

</div>

Thanks, Mathieu.

I created the issue: [https://gitlab.kitware.com/paraview/paraview/issues/19293](https://gitlab.kitware.com/paraview/paraview/issues/19293)  
and merge request: [https://gitlab.kitware.com/paraview/paraview/merge\_requests/3546](https://gitlab.kitware.com/paraview/paraview/merge_requests/3546)

---

<div class="post-metadata">

### Author: ![e-kolosov](https://discourse.paraview.org/user_avatar/discourse.paraview.org/e-kolosov/32/2375_2.png) [@e-kolosov](https://discourse.paraview.org/u/e-kolosov)
#### Post date: [August 10, 2020, 7:19am UTC](https://discourse.paraview.org/t/is-there-any-abilities-to-add-a-interactive-widgets-on-linechartview-same-as-3d-widgets-on-renderview/2273/5 "2020-08-10T07:19:53Z")

</div>

Hello.  
I updated the code to merge with ParaView 5.8 and improved usability. The details are in the video.

> **[2d\_interactive.mkv](https://www.dropbox.com/s/4mgobajqrc9hd0s/2d_interactive.mkv?dl=0)**
>
> Shared with Dropbox

  
I also updated the merger requests.  
[@mwestphal](https://discourse.paraview.org/mwestphal) [@utkarsh.ayachit](https://discourse.paraview.org/utkarsh.ayachit) review my code, please.

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [August 10, 2020, 7:33am UTC](https://discourse.paraview.org/t/is-there-any-abilities-to-add-a-interactive-widgets-on-linechartview-same-as-3d-widgets-on-renderview/2273/6 "2020-08-10T07:33:13Z")

</div>

I’ve reviewed your vtk MR.

---

<div class="post-metadata">

### Author: ![e-kolosov](https://discourse.paraview.org/user_avatar/discourse.paraview.org/e-kolosov/32/2375_2.png) [@e-kolosov](https://discourse.paraview.org/u/e-kolosov)
#### Post date: [August 10, 2020, 7:56am UTC](https://discourse.paraview.org/t/is-there-any-abilities-to-add-a-interactive-widgets-on-linechartview-same-as-3d-widgets-on-renderview/2273/7 "2020-08-10T07:56:04Z")

</div>

Thanks, Mathieu!  
I’ve already pushed the changes into VTK MR.  
Also review my ParaView MR, please.  
Thank you in advance.
