Fixed bug in chart data