How do I create a graph in Atlassian Forge?

I am trying to create a graph to display data from a table. This is to be displayed in a confluence macro. I am having trouble doing this as I can not get a canvas to display anything. I have also tried installing react libraries to make graphs but they will not display either. Is there a way I can use image and draw my own graph there? If not is there another way to create graphs?