Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I get error Chart is not defined #78

Open
crazycodertr opened this issue Jun 4, 2024 · 1 comment
Open

I get error Chart is not defined #78

crazycodertr opened this issue Jun 4, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@crazycodertr
Copy link

My codes :
`

<title>Astro Chart</title> <script src="https://unpkg.com/@astrodraw/astrochart"></script>
<script> document.addEventListener("DOMContentLoaded", function() { const data = { "planets": { "Pluto": [63], "Neptune": [110], "Uranus": [318], "Saturn": [201], "Jupiter": [192], "Mars": [210], "Moon": [268], "Sun": [281], "Mercury": [312], "Venus": [330] }, "cusps": [296, 350, 30, 56, 75, 94, 116, 170, 210, 236, 255, 274] }; const chart = new Chart('paper', 800, 800); const radix = chart.radix(data); }); </script>

`

But I get error **ReferenceError: Chart is not defined
**

Please help me

@crazycodertr crazycodertr added the bug Something isn't working label Jun 4, 2024
@duleigiser
Copy link

add
const Chart = astrochart.default
before

const chart = new Chart( 'paper', 800, 800);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants