This question is locked. New answers and comments are not allowed.
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.