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

Add Cards #44

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Open

Add Cards #44

wants to merge 11 commits into from

Conversation

navneetrai
Copy link
Member

  • Added Charts as cards

CleanShot 2020-10-31 at 05 54 00

README.md Outdated Show resolved Hide resolved
README.md Outdated
Comment on lines 335 to 337
->chartModel(AppUser::class)
->chartName('default')
->width('1/2'),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we indent these lines for better readability?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

README.md Outdated
Comment on lines 339 to 341
->chartModel(AppUser::class)
->chartName('earnings')
->width('1/2'),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we indent these lines for better readability?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

README.md Outdated Show resolved Hide resolved
README.md Outdated
Comment on lines 371 to 383
->chartModel(AppUser::class)
->chartName('default')
->settings([
'type' => 'bar',
'titleProp' => 'name',
'identProp' => 'id',
'height' => 250,
'indexColor' => '#999999',
'color' => '#FF0000',
'parameters' => ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'],
'options' => ['responsive' => true, 'maintainAspectRatio' => false],
])
->width('1/2'),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we indent these lines for better readability?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Comment on lines +4 to +17
<chartjs-bar-chart v-if="isType('bar')"
:dataset="comparisonDataset"
:additionalDatasets="card.additionalDatasets"
:settings="card.settings"
:height="card.settings.height"
:width="card.settings.width"
/>
<chartjs-line-chart v-else
:dataset="comparisonDataset"
:additionalDatasets="card.additionalDatasets"
:settings="card.settings"
:height="card.settings.height"
:width="card.settings.width"
/>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we able to use a dynamic component here since everything is the same except for the component itself? Maybe something along these lines:

<component :is="componentType" v-bind="options"></component>

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dvanscott This change is already a part of #41
Is it okay to handle it in that rebase?

navneetrai and others added 3 commits January 28, 2021 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants