Hi Dani
I think this could be solved without any code. The format of the labels is the same as the data the chart is based on, so if you format the cells which the bar chart is based on to "General" the data labels will get the same format.
I hope this helps.