Generate the SVGs in the right format but nothing I tried worked. Then I had ChatGPT write a separate program to convert the invalid SVGs into working SVGs but also to display exactly as I wanted. That worked. Once I had that I learned how to include text in the SVG data