Skip to content
New issue

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

how to use chart_height #104

Open
jayomayan opened this issue Apr 19, 2023 · 1 comment
Open

how to use chart_height #104

jayomayan opened this issue Apr 19, 2023 · 1 comment

Comments

@jayomayan
Copy link

jayomayan commented Apr 19, 2023

Tried setting it in option but it doesn't follow the height:

$chart_options = [
        'chart_height' => 750,
            'chart_title' => 'Users',
            'report_type' => 'group_by_date',
            'model' => 'App\Models\User',
            'group_by_field' => 'created_at',
            'group_by_period' => 'day',
            'chart_type' => 'line',
            'filter_days' => 30,
            'show_blank_data'=>true,
            'chart_color' => '79, 142, 191',
            'conditions'  => [
                        
                        ['name' => 'Users', 'condition' => 'account_type = "User" ', 'color' => '','fill' => false],
                    ],
        ];
@netm
Copy link

netm commented Mar 14, 2024

I'd like to know this too !

I hacked it by containing the chart in a div with set height and adding the following to the javascript file:

responsive: true,
maintainAspectRatio: false,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants