In the chart wizard, I checked the box to turn on datalabels, which makes a ChartTextAppearance and adds it to LineChartAppearance, then sets to linechart. I am trying to have this as a dynamic feature, so I made the variables accessible to me. However, when I do chartTextAppearance1.Visible = !chartTextAppearance1.Visible from a button click, it does nothing! Also, if I try and add the ChartTextAppearance to LineChartAppearance later, it has no effect. So far it only seems to work on InitializeComponent the first time. Is there any way to do this?
try calling the chart's InvalidateLayers() method after changing the Visible property.