LaravelDaily / laravel-charts

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

How i can show only number not pointed value #108

Open imran-solanki opened 1 year ago

imran-solanki commented 1 year ago

decimal only positive number show on sidebar like 1,2,3,4 not 0,0.1,0.2. Is it possible to hide chart title..?

Thanks

PovilasKorop commented 1 year ago

@imran-solanki this is done by default by chart JavaScript library, our package doesn't control it.

But could you add your code and dataset and I may try to reproduce and comment

imran-solanki commented 1 year ago

@PovilasKorop thanks for reply here is my code $chart_options = [ 'chart_title' => 'Shares', 'report_type' => 'group_by_date', 'model' => 'App\Models\Viewers', 'conditions' =>[ ['condition' => 'license_id =' .$user->license_id,'color' => 'blue', 'fill' => true], ], 'group_by_field' => 'created_at', 'group_by_period' => $filter, 'chart_type' => 'line', 'chart_color'=>"0,255,255", 'entries_number' => '5', ];

$business_card = new LaravelChart($chart_options);

it's working fine month, week and year but only issue with day filter. If you have any example for dataset please share

PovilasKorop commented 1 year ago

@imran-solanki right, I see.

Unfortunately I can't help much, as I mentioned we just generate the parameters for underlying Chart.js library which actually draws the chart. So debug your situation with their docs, maybe they have some parameters that would help you generate the chart exactly as you want.