@amoutonbrady/solid-apexcharts

v0.0.1
Solid wrapper for ApexCharts
apexcharts charts solid

@amoutonbrady/solid-apexcharts

@amoutonbrady/solid-apexcharts

pnpm

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} />
  </>
}
npm i @amoutonbrady/solid-apexcharts

Metadata

  • MIT
  • Whatever
  • Alexandre Mouton-Brady
  • released 8/12/2022

Downloads

Maintainers