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

有帮助吗?

解决方案

Like this;

<telerik:SeriesMapping.SeriesDefinition>
    <telerik:LineSeriesDefinition ShowItemLabels="False" ShowPointMarks="False"/>
</telerik:SeriesMapping.SeriesDefinition>

其他提示

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);
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top