Installation

npm install @hzblj/zyplot

No stylesheet import or Tailwind setup is required. Native modules are included in the package.

Entry points

NameTypeDefaultDescription
@hzblj/zyplotweb, iOS, Android—Automatic web or native renderer. Use this for shared charts.
@hzblj/zyplot/webweb—Web charts plus Frame, Legend, and Skeleton components.
@hzblj/zyplot/iosiOS—Shared charts plus Range and Rule.
@hzblj/zyplot/androidAndroid—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'