Hi Ariel, you pointed me to the right location, in the chart.php i was able to see how they formatted the default variable, and from there I was able to feed in what was needed, if this is of help to others.
return $this->options([ 'maintainAspectRatio' => false, 'scales' => [ 'xAxes' => [], 'yAxes' => [ [ 'ticks' => [ 'beginAtZero' => true, ], ], ], ], ]);
$projectProgress[$ctr]->labels($days) ->minimalist(false) ->height(300) ->width(100) ->options([ 'maintainAspectRatio'=>false, 'scales'=>[ 'xAxes'=>[ ['display'=>false] ] ] ]);
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hi Ariel, you pointed me to the right location, in the chart.php i was able to see how they formatted the default variable, and from there I was able to feed in what was needed, if this is of help to others.
return $this->options([
'maintainAspectRatio' => false,
'scales' => [
'xAxes' => [],
'yAxes' => [
[
'ticks' => [
'beginAtZero' => true,
],
],
],
],
]);
$projectProgress[$ctr]->labels($days)
->minimalist(false)
->height(300)
->width(100)
->options([
'maintainAspectRatio'=>false,
'scales'=>[
'xAxes'=>[
['display'=>false]
]
]
]);