All Projects → MichaelVoelkel → ChartJs2QML

MichaelVoelkel / ChartJs2QML

Licence: MIT license
QML adaptor for Chart.js 2.x that supports startup animations and tooltips

Programming Languages

QML
638 projects

Projects that are alternatives of or similar to ChartJs2QML

Qmlnotify
Awesome notification server in QML
Stars: ✭ 114 (+67.65%)
Mutual labels:  qml, qt5
Browser
🌍 Cross-platform Material design web browser
Stars: ✭ 184 (+170.59%)
Mutual labels:  qml, qt5
Pan Light
百度网盘不限速客户端, golang + qt5, 跨平台图形界面
Stars: ✭ 11,706 (+17114.71%)
Mutual labels:  qml, qt5
Kindd
A kindful dd, written in qt-quick.
Stars: ✭ 93 (+36.76%)
Mutual labels:  qml, qt5
qml-ar
Seamless Augmented Reality module for QML using UchiyaMarkers
Stars: ✭ 32 (-52.94%)
Mutual labels:  qml, qt5
Jagcs
Just another ground control station
Stars: ✭ 99 (+45.59%)
Mutual labels:  qml, qt5
Shell
🐚 QtQuick and Wayland shell for convergence
Stars: ✭ 168 (+147.06%)
Mutual labels:  qml, qt5
Osgqtquick
Intergation OpenSceneGraph to Qt Quick
Stars: ✭ 53 (-22.06%)
Mutual labels:  qml, qt5
Qml Box2d
Box2D QML plugin
Stars: ✭ 223 (+227.94%)
Mutual labels:  qml, qt5
Projecteur
Linux Desktop Application for the Logitech Spotlight device (and similar devices) - Digital Laser Pointer
Stars: ✭ 199 (+192.65%)
Mutual labels:  qml, qt5
Kaidan
[Replaced by https://invent.kde.org/network/kaidan] Kaidan, a simple and user-friendly Jabber/XMPP client for every device and platform.
Stars: ✭ 67 (-1.47%)
Mutual labels:  qml, qt5
youtube-downloader
youtube-dl GUI simplify
Stars: ✭ 22 (-67.65%)
Mutual labels:  qml, qt5
Tbe
The Butterfly Effect, a realistic physics simulation game
Stars: ✭ 63 (-7.35%)
Mutual labels:  qml, qt5
Autoannotationtool
A label tool aim to reduce semantic segmentation label time, rectangle and polygon annotation is supported
Stars: ✭ 113 (+66.18%)
Mutual labels:  qml, qt5
Awesome Qt Qml
A curated list of awesome Qt and QML libraries, resources, projects, and shiny things.
Stars: ✭ 1,118 (+1544.12%)
Mutual labels:  qml, qt5
Haruna
Open source video player built with Qt/QML and libmpv.
Stars: ✭ 147 (+116.18%)
Mutual labels:  qml, qt5
Spix
UI test automation library for QtQuick/QML Apps
Stars: ✭ 48 (-29.41%)
Mutual labels:  qml, qt5
Ipconnect
P2P Chat and File Transfer Desktop Application
Stars: ✭ 53 (-22.06%)
Mutual labels:  qml, qt5
Qml Creative Controls
QML controls for creative applications and creative coding
Stars: ✭ 199 (+192.65%)
Mutual labels:  qml, qt5
UDTStudio
UniSwarm Tools for UDT interface and CANOpen in Qt5
Stars: ✭ 13 (-80.88%)
Mutual labels:  charts, qt5

ChartJs2QML

This is a QML adaptor for Chart.js 2.9.3 that supports startup animations and tooltips. This way you can integrate charts conveniently (also for commercial products thanks to MIT-license) with your QML-based projects. This also works fine when using Qt with C++ with the desire to display some charts. Feel free to ask questions under issues, if you need help with that.

Getting started

You can just import Chart.qml and use it with chartType, chartData and chartOptions to generate a chart. For testing, just clone this repository and run

qmlscene main.qml

assuming that you have bin of Qt in your path variable. Otherwise, start main.qml in any other way. The result should look like this:

Output of main.qml on MacOS

Animation of changes

We have added the possibility to change data and animate to changed data. The file animationExample.qml can be started to see how it works. Just update the corresponding chartData property of Chart and then call its function animateToNewData. Graphs are not rebuilt but rather data is just updated within Chart.js, which is convenient in terms of resource-usage and performance. You can also define via QML the easing type and duration of the animation.

Notes

We directly adapt Chart.js of version 2.9.3 and for using data and options, we refer to all the examples that can be found there: https://www.chartjs.org

For using it with QML, we have changed Chart.js at many places that we have pointed out at the top of Chart.js. Note that the idea for modifications are inspired by Shuirna (https://github.com/shuirna) and their changes were inspired by Julien Wintz.

Also note that we do not guarantee that this adaptor works. We have not tested all different Chart.js charts. We might or might not extend or modify this adaptor. Feel free to provide pull requests if you would like to improve this adaptor.

We hope that this little package might help you with your projects!

All the best, Michael

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].