rename hist function to chart