Looking to understand how to generate an SVG element using a JavaScript function
The basic structure of my HTML file is:
<body>
<svg></svg>
<script></script>
</body>
If I have a script with a function like create(chartName, chartAxises), how would I go about creating a chart within the SVG element?
I appreciate any guidance and apologize for the scattered thoughts. I just need help with the syntax as I've been experimenting for hours without success, hoping for a fresh perspective.