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

php artisan migrate #4

Closed
xoco70 opened this issue Jul 29, 2020 · 9 comments
Closed

php artisan migrate #4

xoco70 opened this issue Jul 29, 2020 · 9 comments

Comments

@xoco70
Copy link
Contributor

xoco70 commented Jul 29, 2020

You forgot this line in README. Quite important !

@xoco70
Copy link
Contributor Author

xoco70 commented Jul 29, 2020

Your component is amazing ! I would like to include a widget that is based on ChartJS component, but I don't exactly know how to do it. I'm not bad in Laravel, but not good at VueJS. I would love to make a PR, but I don't know if I have the skills... Let me try !

@milewski
Copy link
Member

Ooops! yeah I forgot the migration!... thanks for the reminder I will update it..

Im working on a chart widget right now actually...

image

it is super easy to make widgets.. You can copy and paste this one as a starting point: https://github.com/dcasia/value-widget

@marcfil
Copy link

marcfil commented Jul 29, 2020

Ooops! yeah I forgot the migration!... thanks for the reminder I will update it..

Im working on a chart widget right now actually...

image

it is super easy to make widgets.. You can copy and paste this one as a starting point: https://github.com/dcasia/value-widget

Would be awesome to see a working chart widget as sample!

@milewski
Copy link
Member

https://github.com/dcasia/chartjs-widget this is still a work in progress...

@milewski
Copy link
Member

milewski commented Jul 30, 2020

I think Im done! ... created a barchart and a line chart.. pie/radial will make later... now the only thing left is to write the docs... which is the hardest part of this job....

Any feedback is welcome.. I have added a basic readme with a simple example of how to use: https://github.com/dcasia/chartjs-widget

image
image

@xoco70
Copy link
Contributor Author

xoco70 commented Jul 30, 2020

I will give it a try tomorrow !

@xoco70
Copy link
Contributor Author

xoco70 commented Jul 31, 2020

this is not so simple without proper docs :/

@xoco70
Copy link
Contributor Author

xoco70 commented Aug 3, 2020

I tried it once more. I could implement a custom value card. Now, with chartJS, I get:

TypeError: Cannot read property 'display' of null
    at a.mounted (chartjs-widget:formatted:22269)
    at It (vendor.js?id=911c9c048b8f4c9bbb3b:1)
    at en (vendor.js?id=911c9c048b8f4c9bbb3b:1)
    at Object.insert (vendor.js?id=911c9c048b8f4c9bbb3b:1)
    at x (vendor.js?id=911c9c048b8f4c9bbb3b:1)
    at a.__patch__ (vendor.js?id=911c9c048b8f4c9bbb3b:1)
    at a.t._update (vendor.js?id=911c9c048b8f4c9bbb3b:1)
    at a.hn.before (vendor.js?id=911c9c048b8f4c9bbb3b:1)
    at hn.get (vendor.js?id=911c9c048b8f4c9bbb3b:1)
    at hn.run (vendor.js?id=911c9c048b8f4c9bbb3b:1)

This make a reference to :

scales: {
                    xAxes: [{
                        display: this.options.horizontalAxis.display,

What I did:
added this line to composer.json

```    "digital-creative/chartjs-widget": "dev-master",```

Copy paste the new Widget, and added it in my view with :

new SampleLineChart(0, 0, 2, 1, [])

Is there some mandatory properties ?

@xoco70 xoco70 closed this as completed Oct 9, 2020
@Pamposgsk
Copy link

I think Im done! ... created a barchart and a line chart.. pie/radial will make later... now the only thing left is to write the docs... which is the hardest part of this job....

Any feedback is welcome.. I have added a basic readme with a simple example of how to use: https://github.com/dcasia/chartjs-widget

image
image

Hi ,
Iam getting the following error.Can you please help?

Could not check compatibility between App\Nova\Dashboards\Widgets\SampleLineChart::resolveValue(Illuminate\Support\Collection $options, DigitalCreative\NovaDashboard\Filters $filters): DigitalCreative\ChartJsWidget\ValueResult and DigitalCreative\NovaDashboard\Widget::resolveValue(Illuminate\Support\Collection $options, DigitalCreative\NovaDashboard\Filters $filters): DigitalCreative\NovaDashboard\ValueResult, because class DigitalCreative\ChartJsWidget\ValueResult is not available

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

4 participants