Item labels and tooltip visibility

1 posts, 0 answers
  1. Cristian
    Cristian  avatar
    46 posts
    Member since:
    May 2011

    Posted 27 Aug 2012 Link to this post

    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" >

    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));
    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.


Back to Top