Makechart updated to new api