How can you insert collection data to chart?

I’m trying to generate the dataset graphs can you help me the link below doesn’t work