4

How can I turn off Point Marks and Item Labels in WPF RadChart?

Lrrr
  • 4,755
  • 5
  • 41
  • 63
breethe
  • 613
  • 1
  • 6
  • 18

2 Answers2

4

Like this;

<telerik:SeriesMapping.SeriesDefinition>
    <telerik:LineSeriesDefinition ShowItemLabels="False" ShowPointMarks="False"/>
</telerik:SeriesMapping.SeriesDefinition>
Stuart Hallows
  • 8,795
  • 5
  • 45
  • 57
1

You could also do by setting SeriesDefinition.ShowItemLabels property to false look at below code:

var smartSeriesMapping = new SeriesMapping
{
    LegendLabel = "smartSeries",
    SeriesDefinition = new LineSeriesDefinition()
};
smartSeriesMapping.ItemMappings.Add(new ItemMapping("Time", DataPointMember.XCategory));
smartSeriesMapping.ItemMappings.Add(new ItemMapping("SmartVal", DataPointMember.YValue));
smartSeriesMapping.SeriesDefinition.ShowItemLabels = false; //This line make lables go away :D

SmsRadChart.SeriesMappings.Add(smartSeriesMapping);
Lrrr
  • 4,755
  • 5
  • 41
  • 63