Hi,<br><br>I observed that vtkChartLegend is used in vtkPVXYChartView.<br><br>Code:<br> void vtkPVXYChartView::SetChartType(const char *type)<br>{<br>// Construct the correct type of chart<br>  if (strcmp(type, &quot;Line&quot;) == 0 || strcmp(type, &quot;Bar&quot;) == 0)<br>
    {<br>    this-&gt;Chart = vtkChartXY::New(); // in vtkChartXY ctor, vtkChartLegend is created<br>    }<br><br>In my customRenderView, is it possible to use this vtkChartLegend. Can you please suggest how do I get similar ChartLegend in my view?<br>
<br>Appreciate your help in this regard.<br><br>Thanks in advance,<br>Hanumanth.<br><br><div class="gmail_quote">On Fri, Mar 9, 2012 at 5:25 PM, Pandu tech <span dir="ltr">&lt;<a href="mailto:pandu4tech@gmail.com">pandu4tech@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5"><br><div class="gmail_quote"><p class="MsoNormal"><span style="font-size:11pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:rgb(31,73,125)">Hi,</span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:rgb(31,73,125)"><br>

</span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">I
 am trying to implement a legend in a new view that I have created.  I 
would like to get information from the data currently visible (typically
 field data stored in the dataset) and populate the legend box with 
this.  My view is derived from vtkPVRenderView and I can add a 
vtkLegendBoxActor but I’m not sure how I get the information I want in 
order to update it.  Is it possible to either request information about 
the object from the server or get the information from the 
representation?  If so, where do I need to implement this?  </span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"> </span></p><p class="MsoNormal">


<span style="font-size:11pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:rgb(31,73,125)">Alternatively,
 can anyone suggest a better way to do this?  <br></span></p><p class="MsoNormal"><span style="font-size:11pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:rgb(31,73,125)"><br></span></p><p class="MsoNormal">


<span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">I can see that in XYChartView we have a Chart Legend 
(which is nice as it is movable) 
and I’m not sure whether this will work 
for me or how it gets its information.</span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"> </span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Any help would be appreciated.</span></p>


<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><br>Thanks in advance,</span></p><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Hanumanth.</span>
</div><br>
</div></div></blockquote></div><br>