return plot_type to html