PHP code example of donmanueldev / nativephp-charts
1. Go to this page and download the library: Download donmanueldev/nativephp-charts library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
donmanueldev / nativephp-charts example snippets
namespace App\NativeComponents;
use Illuminate\View\View;
use Native\Mobile\Edge\NativeComponent;
final class SalesDashboard extends NativeComponent
{
public function render(): View
{
return view('native.sales-dashboard');
}
}
use App\NativeComponents\SalesDashboard;
use Illuminate\Support\Facades\Route;
Route::native('/', SalesDashboard::class);
use Donmanueldev\NativephpCharts\PointSelection;
public ?string $selectedPointId = null;
public function pointSelected(string $payload): void
{
$selection = PointSelection::fromJson($payload);
$this->selectedPointId = $selection->pointId;
}