Installation & Usage

Download

npm

Installing via npm

npm install apexsankey --save

Usage

import ApexSankey from 'apexsankey'

OR

Direct <script> include

Another way is to directly include it in your html

<script src="https://cdn.jsdelivr.net/npm/apexsankey"></script>

Inside a shadow root

From 1.13.0, ApexSankey works inside a shadow root, such as a custom element or a Lit component: its styles, keyboard focus and tooltips stay inside the root it renders in, and CSS variables set on the host reach it. Create it on an element inside the root and call destroy() when the element leaves the page.