Giter Site home page Giter Site logo

qtchartjs's People

Contributors

simonbrunel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

benevo

qtchartjs's Issues

Issue with QT 5.12 LTS: Cannot read property 'global' of undefined

Hello Simon,
Thanks a lot for this great implementation. I successfully used it till now in a project in mine, but since an update to QT 5.12, it unfortunatly stopped working.

5.12 brings apparently a lot regarding javascript performance. I tried looking into the issue for about 3 hours now but couldn't even do the slightest progress. I guess my Javascript/QML level simply isn't good enough.

Following error occurs:

qtchartjs/Private/Library.js:9: TypeError: Cannot read property 'global' of undefined

For reference, the line is the following one.
Chart.helpers.merge(Chart.defaults.global, {

It's the first reference to objects in Chart and Chart is defined using
.import "../Library/Chart.bundle.min.js" as Chart

What I tried so far: I tried changing Chart to another import name. Tried to update the Chart.js library to the latest version. Tried to switch to mjs file extension. Tried also the non .min. library (It doesn't bring more informations). Tried to remove the code from the global function and put is directly into the lib.
The file Chart.bundle.min.js is found, I tried importing an non-existing file and it fails differently.
I don't get any step further than that.

Do you have any other ideas? Do you think it's a 5.12 issue?

Can't build the project

When I try to build the project, I get the following error (no matter whether I do it from the terminal or from Qt Creator):

Project ERROR: Project has no top-level .qmake.conf file.

The error occurs while executing the qmake command on src/imports/imports.pro.

RangeError: Maximum call stack size exceeded.

We are trying to implement chart.js into our qml app and are somewhat stuck at the eventListeners.

While some work fine (like 'click') others like hovering over "datapoints" result in

RangeError: Maximum call stack size exceeded.

usually somewhere within (Library.js)

Chart.helpers.merge(Chart.platform, { addEventListener: function(chart, type, listener) {

any clues?

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.