get chart type from url