4
如何關閉WPF RadChart中的點標記和項目標籤?禁用WPF中的點標記和項目標籤RadChart
如何關閉WPF RadChart中的點標記和項目標籤?禁用WPF中的點標記和項目標籤RadChart
像這樣;
<telerik:SeriesMapping.SeriesDefinition>
<telerik:LineSeriesDefinition ShowItemLabels="False" ShowPointMarks="False"/>
</telerik:SeriesMapping.SeriesDefinition>
您也可以通過下面的代碼設置SeriesDefinition.ShowItemLabels
屬性false
看看這樣做:
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);