Make sure that the chart output is an int.