iOS

The iOS renderer uses Swift Charts and SwiftUI Canvas. Put explicit iOS imports in *.ios.tsx files.

tsx
import { Chart, zyplot } from '@hzblj/zyplot/ios'

const chart = zyplot(z => ({
  categories: ['Jan', 'Feb', 'Mar'],
  series: [z.series({ id: 'price', label: 'Price', values: [42, 56, 72] })],
  xAxis: { visibleDomain: 30 },
}))

export function Price() {
  return <Chart.Line {...chart} />
}

iOS-only charts

Range plots low-to-high intervals. Rule draws standalone reference lines.