Question: How can I add some text on top of a bar in a chart.
This is the code I have to add the bar:

```
var color = ColorTranslator.FromHtml(row.Colour);
var barItem = graphPane.AddBar(row.Propensity.ToString(), null, Ys.ToArray(), color);

```

Thank you

Answer: 
You need to define AlignH and AlignV in your text object:

```
TextObj textLabel = new TextObj(value.ToString(), positionX, value, CoordType.AxisXYScale, AlignH.Center, AlignV.Top);

```

AlignV define the position of your value on the bar.
Providing you want the label text to match the value of each bar, then you can do it with a single line of code:

```
BarItem.CreateBarLabels(graphPane, false, "F0");

```

Note that the 3rd parameter is a `double.ToString` format. e.g. `"F0" = 12`, `"F2" = 12.34`

However, if you want any flexibity with it then this solution is not ideal. It also doesn't work very well if you have a stacked bar chart, because having any `0` value data will cause labels to overlap and look horrific