fixed issue with x-value for the chart data