We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I tried to put the chart on the lens with width('1/2') or width('1/3'). The chart seem to be too large than the card itself as shown in the picture.
here is my code that I put in the cards
public function cards(Request $request) { $PostCountByType = Post::selectRaw('type, count(*) as no_post')->groupBy('type')->orderBy('no_post')->get(); $y = $PostCountByType->pluck('type')->toArray(); $x = $PostCountByType->pluck('no_post')->toArray(); return [ (new NovaApexChart()) ->type('donut') ->series($x) ->options([ 'labels' => $y, ])->width('1/3'), (new NovaApexChart()) ->type('pie') ->series($x) ->options([ 'labels' => $y, ])->width('1/3'), (new NovaApexChart()) ->type('bar') ->series([ new BasicSeries('No of Post',$x), ]) ->options([ 'labels' => $y, 'title' => ['text' => 'Post Count by Type'], ])->width('1/3'), ];
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I tried to put the chart on the lens with width('1/2') or width('1/3'). The chart seem to be too large than the card itself as shown in the picture.
here is my code that I put in the cards
The text was updated successfully, but these errors were encountered: