laravel-charts icon indicating copy to clipboard operation
laravel-charts copied to clipboard

How i can show only number not pointed value

Open imran-solanki opened this issue 2 years ago • 3 comments
trafficstars

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 avatar Jun 17 '23 06:06 imran-solanki

@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 avatar Jun 17 '23 12:06 PovilasKorop

@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 avatar Jun 17 '23 13:06 imran-solanki

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

PovilasKorop avatar Jun 17 '23 18:06 PovilasKorop