Fixed the problem of passing in the correct params to the chart