Short of clearing the text of the labels
one simple method is to make the color transparent.
You can do it for the whole Series s1
:
s1.LabelForeColor = checkBox_test.Checked ? Color.Black: Color.Transparent;
..or for individual DataPoints dp
:
dp.LabelForeColor = checkBox_test.Checked ? Color.Blue : Color.Transparent;
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.