i used astrochart ,it works:
import React, { useEffect } from "react";
import Chart from "@astrodraw/astrochart";
import { Origin, Horoscope } from "circular-natal-horoscope-js";
and work:
// Create and render the chart
const chart = new Chart("paper", 800, 800);
chart.radix(data);
// Cleanup function
return () => {
/* Optional cleanup operations */
};
}, []);
return
;
but i nmp install astrochart2, but i don't konw how to import this. can you help me . i use react.js 18 ,node .js
i used astrochart ,it works:
import React, { useEffect } from "react";
import Chart from "@astrodraw/astrochart";
import { Origin, Horoscope } from "circular-natal-horoscope-js";
and work:
// Create and render the chart
const chart = new Chart("paper", 800, 800);
chart.radix(data);
// Cleanup function
return () => {
/* Optional cleanup operations */
};
}, []);
return
;but i nmp install astrochart2, but i don't konw how to import this. can you help me . i use react.js 18 ,node .js