I don't see the graphs in the detail of the resource
i installed this package in laravel nova: https://github.com/kirschbaum-development/nova-chartjs
unfortunately I am unable to view the detailed graphs of the resource:
i did as follows in the model:
I would like to show the graphs in detail of the resource, I have configured the model as per guide and inserted a static test graph.
Unfortunately, nothing has changed in the detail of the resource:
below the code in the model:
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; use KirschbaumDevelopment\NovaChartjs\Traits\HasChart; use KirschbaumDevelopment\NovaChartjs\Contracts\Chartable;
class TrelloCustomer extends Model implements Chartable
{
use HasFactory;
use HasChart;
protected $fillable = ["name","todo","done"];
public static function getNovaChartjsSettings(): array
{
return [
'default' => [
'height' => 400,
'indexColor' => '#999999',
'color' => '#FF0000',
'parameters' => ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'],
'options' => ['responsive' => true, 'maintainAspectRatio' => false],
]
];
Please or to participate in this conversation.