November 2018
Intermediate to advanced
1150 pages
24h 11m
English
We should now decide upon a charting library based on HTML5 and JavaScript to use. Although there are many options available, Chart.js (http://www.chartjs.org/) is ideal because of its permissive MIT license and relatively simple APIs. Starting from the QML graph example of Chapter 30, Building a Mobile Dashboard to Display Real-Time Sensor Data, we will re-implement it with Chart.js. I won't go into the details of the re-implementation since this is out of scope for this title — you can check out the Chart.js documentation and samples to get the specifics. Besides Chart.js, we'll be using Moment.js, which fully integrates with the charting library for the easy handling of dates and times. The following is the ...
Read now
Unlock full access