Installation
npm install @hzblj/zyplotNo stylesheet import or Tailwind setup is required. Native modules are included in the package.
Entry points
| Name | Type | Default | Description |
|---|---|---|---|
@hzblj/zyplot | web, iOS, Android | — | Automatic web or native renderer. Use this for shared charts. |
@hzblj/zyplot/web | web | — | Web charts plus Frame, Legend, and Skeleton components. |
@hzblj/zyplot/ios | iOS | — | Shared charts plus Range and Rule. |
@hzblj/zyplot/android | Android | — | Shared charts plus Waterfall and Lollipop. |
tsx
import { Chart, zyplot } from '@hzblj/zyplot'
// Use explicit entry points only in platform files:
import { Chart as IosChart, zyplot as iosZyplot } from '@hzblj/zyplot/ios'
import { Chart as AndroidChart, zyplot as androidZyplot } from '@hzblj/zyplot/android'