Dynamically created the chart and styled