hooks in new chart endpoint