Library for building DHIS2 analytics apps.
NB! Needed functionality is being migrated to d2 (https://github.com/dhis2/d2) - this libary will eventually be deprecated.
:no_entry: [DEPRECATED] Please refer to DHIS2 Analytics library
Home Page: https://github.com/dhis2/analytics
Library for building DHIS2 analytics apps.
NB! Needed functionality is being migrated to d2 (https://github.com/dhis2/d2) - this libary will eventually be deprecated.
https://github.com/dhis2/d2-analysis/blob/master/src/api/Layout.js
Here we have:
t.legendSet = (new Record(c.legendSet)).val(true);
But this value only holds the id
of the legendSet, it seems to be missing some code to get the actual legends from the appManager
. Something like this?
var _appManager = t.klass.appManager;
...
if (_appManager.legendSets && t.legendSet && t.legendSet.id) {
for (var i = 0, legendSet; i < _appManager.legendSets.length; i++) {
legendSet = _appManager.legendSets[i];
if (legendSet.id === t.legendSet.id) {
$.extend(t.legendSet, legendSet);
break;
}
}
}
For the org unit tree, add a function for searching for organisation units by name, short name, uid and code.
It is currently not possible to easily find organisation units in the tree.
Use api versioning, e.g. /api/25/...
In the Save / Save as favorite dialog, include fields:
API field | UI Label | Input type |
---|---|---|
title | Title | Input field |
description | Description | Text area |
Remove the "title" field under Options as it will now be under favorites.
In the Save / Save as favorites dialog: By default, collapse the list of favorites. Include a down-arrow icon which allows for expanding the list of favorites (as it currently is). The icon should shift to an up-arrow icon which allows for collapsing the list.
This will make the UI less crowded and bring the "Save" button closer to the input fields.
In the "write interpretation" dialog, include the UI for sharing settings under the interpretation area.
The sharing settings UI should be a mirror of the current sharing settings dialog and reflect the sharing state of the favorite.
In the POST API request for creating the interpretation, include the sharing part in the request body.
The concept is that the sharing state of the favorite should be equal to the sharing state of the interpretation.
🚨 You need to enable Continuous Integration on Greenkeeper branches of this repository. 🚨
To enable Greenkeeper, you need to make sure that a commit status is reported on all branches. This is required by Greenkeeper because it uses your CI build statuses to figure out when to notify you about breaking changes.
Since we didn’t receive a CI status on the greenkeeper/initial
branch, it’s possible that you don’t have CI set up yet. We recommend using Travis CI, but Greenkeeper will work with every other CI service as well.
If you have already set up a CI for this repository, you might need to check how it’s configured. Make sure it is set to run on all new branches. If you don’t want it to run on absolutely every branch, you can whitelist branches starting with greenkeeper/
.
Once you have installed and configured CI on this repository correctly, you’ll need to re-trigger Greenkeeper’s initial pull request. To do this, please click the 'fix repo' button on account.greenkeeper.io.
The pivot and chart plugins are using fields in field filtering which are no longer in use on the favorite data model. In DHIS 2.25 will have strict validation so this must be corrected.
The fields are:
The Embed button generates this HTML head:
<head>
<link rel="stylesheet" href="//dhis2-cdn.org/v222/ext/resources/css/ext-plugin-gray.css" />
<script src="//dhis2-cdn.org/v222/ext/ext-all.js"></script>
<script src="//dhis2-cdn.org/v222/plugin/table.js"></script>
</head>
However, none of those 3 URLs seem to exist (they do exist for older version, i.e. 2.16). Also, not sure where plugin/table.js is to be found in this new version.
https://github.com/dhis2/d2-analysis/blob/master/src/ui/EmbedWindow.js#L23
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.