开发者

Disable Point Marks and Item Labels in WPF RadChart

开发者 https://www.devze.com 2023-03-13 08:14 出处:网络
How can I turn off Po开发者_开发问答int Marks and Item Labels in WPF RadChart?Like this; <telerik:SeriesMapping.SeriesDefinition>

How can I turn off Po开发者_开发问答int 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);
0

精彩评论

暂无评论...
验证码 换一张
取 消