Git Product home page Git Product logo

Comments (8)

enyo avatar enyo commented on May 2, 2024 2

Yup, just ran into the same issue. Seems as if the external factory constructors for some classes are missing.

from chartjs.dart.

enyo avatar enyo commented on May 2, 2024 1

Is there any update on this?

from chartjs.dart.

danielmcquillen avatar danielmcquillen commented on May 2, 2024

Sorry, I forgot this is the same issue as the one @portno logged: #22 .

from chartjs.dart.

kasumi21 avatar kasumi21 commented on May 2, 2024

I'm not sure if it's the same error:
I started to upgrade to Dart 2.0.0 (official stable release), I'm using chartjs: ^0.5.0 and in the javascript I imported the Chartjs 2.6.0 (like the example), but still I have this errors:
Error: The class 'ChartAnimationOptions' is abstract and can't be instantiated.
Error: No named parameter with the name 'duration'.
Error: The class 'ChartTooltipCallback' is abstract and can't be instantiated.
Error: No named parameter with the name 'title'.
Code:
ChartConfiguration config = new ChartConfiguration( type: 'doughnut', data: data, options: new ChartOptions( animation: new ChartAnimationOptions(duration: 0), tooltips: new ChartTooltipOptions( callbacks: new ChartTooltipCallback( title: allowInterop((tooltipItems, data) { return data.labels[tooltipItems[0].index] + ": " + "${data.datasets[tooltipItems[0].datasetIndex].data[tooltipItems[0].index]}%"; }), label: allowInterop((tooltipItem, data) { return; })))));

With the previous version of dart worked.

from chartjs.dart.

romanoffs avatar romanoffs commented on May 2, 2024

I have the same problem.
When I try to inherit an abstract class, I get the error: Uncaught TypeError: Class extends value undefined is not a constructor or null

from chartjs.dart.

kevmoo avatar kevmoo commented on May 2, 2024

from chartjs.dart.

romanoffs avatar romanoffs commented on May 2, 2024

Pull requests are welcome. I built this sample out as example of Dart-JS interop. I don't have the bandwidth to maintain it actively.

On Sat, Oct 6, 2018 at 2:38 AM Денис @.***> wrote: I have the same problem. When I try to inherit an abstract class, I get the error: Uncaught TypeError: Class extends value undefined is not a constructor or null — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#26 (comment)>, or mute the thread https://github.com/notifications/unsubscribe-auth/AABCisFYGMYBZnGTwlBGnf41a9PMuWLgks5uiHodgaJpZM4Vy-GI .

Thank you! I have already added the factories I need

from chartjs.dart.

Timmmm avatar Timmmm commented on May 2, 2024

ChartAnimationOptions is still missing its options. I'd add it but I'm not sure how to handle the callbacks. :-/

from chartjs.dart.

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.