Got the chart working finally