Native charts for
NativePHP Mobile.

Render line, bar, pie, and seven other chart types with Swift Charts on iOS and Jetpack Compose on Android. Configure data, styles, and selection callbacks in PHP.

  • NativePHP Mobile 4
  • PHP 8.4+
  • iOS 18.2+
  • Android API 26+
iOSSwift Charts
Native iOS line chart with the March value selected
AndroidJetpack Compose
Native Android chart showing the temperature in Managua through the afternoon

Add a chart in Blade.

Start with a complete chart and its data. Then customize its appearance or handle point selections in PHP.

Create your first native screen
<native:line-chart
    class="w-full h-80"
    :series="[
        [
            'id' => 'revenue',
            'name' => 'Revenue',
            'color' => '#ED3F16',
            'points' => [
                ['id' => 'jan', 'label' => 'January', 'value' => 18],
                ['id' => 'feb', 'label' => 'February', 'value' => 26],
                ['id' => 'mar', 'label' => 'March', 'value' => 31],
            ],
        ],
    ]"
    theme="system"
    preset="default"
    error-label="Revenue chart unavailable"
    a11y-label="Revenue by month"
/>

Chart types

Each guide includes a data example, native previews, supported options, and selection behavior.

Apps using NativePHP Charts

See the package in apps built with NativePHP Mobile.

Explore apps
Android

Despertá

An alarm app with question challenges and habit tracking. Alarms and habit history are stored on the device, without an account.

Visit Despertá