LaravelDaily / laravel-charts

Package to draw charts in Laravel with Chart.js
MIT License
531 stars 118 forks source link

table not show i will use tailwind class on column_class #120

Open madfortech opened 7 months ago

madfortech commented 7 months ago

Screenshot 03-27-2024 15 46 48 here my code this is homecontroller $chart_options = [ 'chart_title' => 'Users by months', 'report_type' => 'group_by_date', 'model' => 'App\Models\User', 'group_by_field' => 'created_at', 'group_by_period' => 'month', 'chart_type' => 'bar', 'column_class' => 'w-full', ]; $settings1 = new LaravelChart($chart_options); return view('admin.home', compact('settings1'));

  this is blade view code
    ` <div class="{{ $settings1->options['column_class'] }}">
            <h3>{!! $settings1->options['chart_title'] !!}</h3>
            {!! $settings1->renderHtml() !!}
        </div>
    `
    my question is i will change column class add tailwind css class table not show any help ?