Core Apps & Documentation Updates #2
bhdouglass last edited by
It wasn't all me, it wouldn't be possible without the many contributors!
Lakotaubp last edited by
@bhdouglass Thanks to one and all once again.
advocatux last edited by
@bhdouglass & team, great job once again !!
if can help, i have published some application templates to use as starting point for Application development based on AdaptiveLayout, ListView, Chart, PageStack.
Templates and How to tutorial can be found at: https://github.com/fulvio999/ubports_app_templates
@bhdouglass If you want, feel free to clone, edit or include in the doc.
@fulvio Hi fulvio, thank you for your templates, I find your work very useful, great! Unfortunately, as all the new things though, it doesn't work for me at the first attempt.
It is worth to mention I have installed clickable and cookiecutter and I'm following your tutorial. This is the output I got, I'm not even able to get to the point where cookiecutter asks me for the name of the app:
@fulvio never mind, I just solved by myself, 'cause I'm really a dumb....I set the address pointing to the cookiecutter.json, writing it as './ubports_app_templates-master/ChartJs/cookiecutter.json' but in this way it is interpreted by the command as written twice. I can now proceed.
you must use the FULL path to the cookiecutter.json file of the template that you want use.
I have updated the Readme file on github (see "Example" section)
@fulvio nice, how you changed that sentence is much clearer now, thanks May I ask you a question? I'm right now mainly interested in the ChartJs template, to generate a chart starting from data. If I wanted to generate a chart from X and Y data produced by different sources, how could I proceed? I mean, can I use a different data file source as for instance a LibreOffice sheet or just a plain text file which is randomly populated, instead than the ChartDataSource.js, where the data are static?
Any hint would be greatly appreciated.
yes is possible load data from a different source, like a database sqlite the database used by Ubuntu touch (Ubports)
For an example about chart + data loaded from sqlite database look at this:
("Database access with QML" and "QML and Charts" chapters)
The sample App associated with "QML and Charts" chapter can be found here:
(is the project named: WeatherRecorderChart)
NOTE: that project are made with old Ubuntu sdk - ide But should work also with clickable (just 'clickable desktop' in the folder with the .pro file)
In case of does not work with clickable, the source code of the sample App is valid you can use it.
the two file you are interested are:
'ChartUtils.js' is the file containing the query to load data from sqlite database and prepare the data-set for the chart
'ChartPage.qml' is the qml page where the chart is drawn
To load data from a Libre Office sheet...sorry but i don't know how to do (maybe someone here have an idea, solution).
bhdouglass last edited by
@fulvio I've added a link to your templates to the ubport's docs (it's not quite there yet, still a PR): https://github.com/ubports/docs.ubports.com/pull/174