-- Plotting the chart depending on the renderType