4

如何关闭 WPF RadChart 中的点标记和项目标签?

4

2 回答 2

4

像这样;

<telerik:SeriesMapping.SeriesDefinition>
    <telerik:LineSeriesDefinition ShowItemLabels="False" ShowPointMarks="False"/>
</telerik:SeriesMapping.SeriesDefinition>
于 2011-06-21T00:49:17.017 回答
1

您也可以通过设置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);
于 2015-03-01T11:23:56.220 回答