<div>Marcus,</div>
<div> </div>
<div>Thank you for the response.</div>
<div> </div>
<div>Which path would be easier?</div>
<div> - Add the interactivity behavior for vtkCharLegend;</div>
<div> - Create a vtk widget for <a class="el" href="http://www.vtk.org/doc/nightly/html/classvtkLegendBoxActor.html">vtkLegendBoxActor</a> </div>
<div> </div>
<div>Another potential feature, that I am thinking ahead, is the ability to display multiple legends. For example, one legend box for colors and another separate box for symbol shapes. As far as I can tell, vtkChart, currently, doesn't support multiple legends. If it is possible to place a vtkLegendBoxActor into a vtkContextView, the multiple legend box feature would become instantly available. </div>
<div> </div>
<div>Jenya<br><br></div>
<div class="gmail_quote">On Fri, Apr 22, 2011 at 5:51 AM, Marcus D. Hanwell <span dir="ltr"><<a href="mailto:marcus.hanwell@kitware.com">marcus.hanwell@kitware.com</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div class="im">On Wed, Apr 20, 2011 at 6:10 PM, Jenya Burstein <<a href="mailto:taijinian@gmail.com">taijinian@gmail.com</a>> wrote:<br>> Hello,<br>><br>> We need to be able to:<br>> 1) Display plot legends that can be interactively moved. It appears that<br>
> vtkChart's legend doesn't not allow legend to be repositioned interactively.<br>> Is that correct?<br><br></div>This feature has not yet been added, it would be possible to add it.<br>There is support for positioning the legend relative to its chart.<br>
<div class="im"><br>> 2) Display plot legends only for some plots of a chart. There doesn't seem<br>> to be an easy way to specify whether a legend should be drawn for a plot of<br>> a chart. Looking at VTK code, it appears that if the Labels member of the<br>
> vtkPlot class is set to null, VTK will create and use AutoLabels. The only<br>> way I can think of making a plot to be skipped for drawing a legend is to<br>> subclass the vtkPlot[Line] and override the GetLabels() method to return<br>
> null. Is that the intended way?<br><br></div>This is something I would like to add in. As always, I would gladly<br>accept patches, and some of this may get added as part of some work I<br>am doing. I can't give definite timeframes on when though I am afraid.<br>
<div class="im">><br>> Any info is much appreciated,<br><br></div>Hopefully this clears things up. I think both features should go in,<br>but neither is currently implemented.<br><br>Thanks,<br><font color="#888888"><br>
Marcus<br></font></blockquote></div><br>