Git Product home page Git Product logo

Comments (9)

milewski avatar milewski commented on September 12, 2024 4

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

from nova-dashboard.

milewski avatar milewski commented on September 12, 2024 1

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

from nova-dashboard.

xoco70 avatar xoco70 commented on September 12, 2024

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 !

from nova-dashboard.

marcfil avatar marcfil commented on September 12, 2024

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!

from nova-dashboard.

milewski avatar milewski commented on September 12, 2024

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

from nova-dashboard.

xoco70 avatar xoco70 commented on September 12, 2024

I will give it a try tomorrow !

from nova-dashboard.

xoco70 avatar xoco70 commented on September 12, 2024

this is not so simple without proper docs :/

from nova-dashboard.

xoco70 avatar xoco70 commented on September 12, 2024

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 ?

from nova-dashboard.

Pamposgsk avatar Pamposgsk commented on September 12, 2024

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

from nova-dashboard.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.