So I'm trying to update dataPoints programmaticaly in a column chart but whenever I do this, the column chart displays empty columns where there IS a number greater than zero, and displays a zero otherwise. Now the code below works for a pie chart but for some reason it does not work for the bar chart.
barChart.Series(0).Points.Item(0).YValues.SetValue(countInstSubs, 0)
barChart.Series(0).Points.Item(1).YValues.SetValue(countPCLRetSubs, 0)
barChart.Series(0).Points.Item(2).YValues.SetValue(countSYNRetSubs, 0)
barChart.Series(0).Points.Item(3).YValues.SetValue(countPRESListSubs, 0)
barChart.Series(0).Points.Item(4).YValues.SetValue(countUSInstSubs, 0)
barChart.Refresh()
When I use the designer to populate some static values, the chart displays those values. But once I try to update them, I get a blank chart. I have also tried clearing the series altogether and rebuilding it each time I want to change the graph but this did not work either.
Has anyone seen this before?