It's difficult to debug a project without the whole code.
I suppose that you added the BarChart in the Designer.
Did you set the ChartType to BAR?
Is C() defined as Double?
Then, set the indexes from 0 to 15 to see if you get a chart.
Then set a breakpoint in the
FillBarChart routine at this line
BarChart.AddBarPointData(N(i), V(i)) and check if the content of N(i) and V(i) is the correct one.
Otherwise post your project as a zip file.
You will need the latest xChart b4xlib not yet officially published.
You find it
HERE.