-
Notifications
You must be signed in to change notification settings - Fork 171
Open
Description
Steps to Reproduce:
-
I was trying to configure the
ColumnChartModelin my Livewire component. -
Here is the relevant code snippet:
<?php namespace App\Http\Livewire\OrgOwner\Dashboard\Charts; use Asantibanez\LivewireCharts\Models\ColumnChartModel; use Livewire\Component; class ExampleComponent extends Component { private ColumnChartModel $columnChartModel; public function initData(): void { $this->columnChartModel = (new ColumnChartModel())->setJsonConfig([]); } }
-
When I try to execute this code, I receive the error mentioned above.
Additional Context:
- Livewire Charts Version: [Specify version, e.g., v2.1.0]
- Laravel Version: [Specify version, e.g., 8.0]
- PHP Version: [Specify version, e.g., 7.4]
Expected Behavior:
I expected the setJsonConfig() method to configure the JSON settings for the chart model.
Actual Behavior:
The method setJsonConfig() does not seem to exist in the ColumnChartModel class.
Is there a recommended approach to achieve this functionality, or is this a potential bug in the library?
Thank you for your assistance!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels