Fix parsing as number in bar and pie charts.