This question is locked. New answers and comments are not allowed.
I used the following code to hide labels on bar3D chart but it didn't work, the labels are still showing:
this worked but if I replace " (bool)ShowLabelsCheckbox.IsChecked" with "false", it stopped working again.
Anybody can reproduce this? Thanks.
chart.DefaultView.ChartArea.DataSeries[i].Definition.ShowItemLabels =
false;
I added a checkbox as the sample code, used the following code to hide the label:
chart.DefaultView.ChartArea.DataSeries[i].Definition.ShowItemLabels = (
bool)ShowLabelsCheckbox.IsChecked;
this worked but if I replace " (bool)ShowLabelsCheckbox.IsChecked" with "false", it stopped working again.
Anybody can reproduce this? Thanks.