change the graphs type