Group: Forum Members
Last Active: 14 Years Ago
Posts: 3,
Visits: 1
|
Hello, I'm drawing a simple horizontal bar chart. While using AutoLabels=true, all is working fine. But setting AutoLabels=false, there are no labels drawn. What's my mistake?
NBarSeries series = (NBarSeries)control.Charts[0].Series[0]; series.Values.Clear();
NStandardScaleConfigurator scaleConfiguratorX = (NStandardScaleConfigurator)control.Charts[0].Axis(StandardAxis.PrimaryX).ScaleConfigurator; scaleConfiguratorX.MajorTickMode = MajorTickMode.AutoMaxCount; scaleConfiguratorX.AutoLabels = false; scaleConfiguratorX.Labels.Clear();
foreach (breakageData item in this_list.Values) { scaleConfiguratorX.Labels.Add(item.regptName); series.Values.Add(item.percent); } control.Refresh();
Regards Reimund Köhler
|