LaravelDaily/laravel-charts

How i can show only number not pointed value

Opened this issue · 3 comments

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

@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

@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

@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.