This is a migrated thread and some comments may be shown as answers.

Item labels and tooltip visibility

0 Answers 21 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Cristian
Top achievements
Rank 1
Cristian asked on 27 Aug 2012, 04:09 PM
Hi Guys.
Im new to silverlight development, I'm working with radchart of radcontrol for silverlight q1 2012.
I want to make labels  of each series invisible and instead add a tooltip with information related to
each serie.
Here's how I create the chart.
 
<
telerik:RadChart Name="grafica" >
 
                           <telerik:RadChart.DefaultView>
                               <telerik:ChartDefaultView>
                                    
                                   
                               </telerik:ChartDefaultView>
                           </telerik:RadChart.DefaultView>
 
 
                       </telerik:RadChart>


And here's how I bind the chart in code behind.
var serie2 = new DataSeries();
var barSerie= new DataSeries();
 
  grafica.DefaultSeriesDefinition.ShowItemLabels = false;
            grafica.DefaultSeriesDefinition.ShowItemToolTips = true;
            grafica.DefaultView.ChartArea.SmartLabelsEnabled = false;
            grafica.DefaultSeriesDefinition.ShowItemLabels = false;
   foreach (var proyEstrategico in x)
            {
                barSerie.Add(new DataPoint(proyEstrategico.ContribucionReal));
                serie2.Add(new DataPoint( proyEstrategico.ContribucionTeorica));
 
        
 
            }
 
 
            grafica.DefaultView.ChartArea.DataSeries.Add(serie2);
            grafica.DefaultView.ChartArea.DataSeries.Add(barSerie);
Binding the data works perfect but labels are invisible only when data is equal to 0 and I want them
always invisible and add tooltips.

How can I solve this?
Hope your Help.

Thanks.

No answers yet. Maybe you can help?

Tags
Chart
Asked by
Cristian
Top achievements
Rank 1
Share this question
or