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

get values from auto aggregated fields #104

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

awwama
Copy link

@awwama awwama commented Aug 24, 2021

This changes will help to visualization charts for auto aggregated data. Below is example of database structure.

image

And below is sample for data:
image

Sample of code:
(new LineChart()) ->title('Compare Incomes, Expeses and Deposit') ->model('\App\Models\Transaction') // Use Your Model Here ->series(array([ 'label' => 'Cash Deposit', 'filter' => [ 'key' => 'cash_deposit', // State Column for Count Calculation Here ], ],[ 'label' => 'Sum Incomes', 'filter' => [ 'key' => 'sum_incomes', // State Column for Count Calculation Here ], ],[ 'label' => 'Sum Expenses', 'filter' => [ 'key' => 'sum_expenses', // State Column for Count Calculation Here ], ])) ->width('full'),

And the result will be:
image

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

Successfully merging this pull request may close these issues.

1 participant