@amoutonbrady/solid-apexcharts
v0.0.1
Published
Solid wrapper for ApexCharts
Downloads
7
Readme
@amoutonbrady/solid-apexcharts
A small wrapper around Apexcharts for Solid.
There's already a package named solid-apexcharts
.
If I end up using this package, I expect it to be tailored to my need which will probably be different than the original authors that is closer to the Apexcharts wrapper of Vue and React.
Quick start
Install it:
pnpm add @amoutonbrady/solid-apexcharts
Use it:
import { ApexCharts, useApexCharts } from '@amoutonbrady/solid-apexcharts';
function App() {
const [apexChart] = useApexCharts(options);
return <>
<h1>Welcome to my super charts page!</h1>
{/* You can either wire things manually and have more control over the template */}
<div ref={apexCharts}></div>
{/* Or use pre-built components */}
<ApexCharts {...options} />
</>
}