Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

task: single value chart type #300

Merged
merged 42 commits into from
Aug 21, 2019
Merged

task: single value chart type #300

merged 42 commits into from
Aug 21, 2019

Conversation

edoardo
Copy link
Member

@edoardo edoardo commented Jun 19, 2019

The PR adds the new visualization type in the type selector and implements the logic for the active/inactive items and the message in the info box in DataDimension shared component.

On a side note, I spoke with @cooper-joe about the possibility of changing the text in the info box to make it clear that is possible to reorder the items even if they look inactive, and that reordering affects the value rendered in the single value visualization.

For SINGLE_VALUE dx must be moved in Series and all the rest in filters
When multiple items are selected for dx, only the first one is used for
rendering the SINGLE_VALUE. A warning icon is shown and the label text
shows that 1 item out of n is used.
The tooltip only lists the one item that is used.
Also pass the output format to d2ca based on the visualization type
edoardo and others added 18 commits June 20, 2019 15:26
This is needed in the data dimension modal when single value
visualization type is used.
In that case only the first item is used and the others
should be marked as inactive.
For Single Value visualization type show a message in the ItemSelector
when more than 1 item are selected (but only the first is active)
The active flag is passed within the item's list instead of passing a
callback in a dedicated prop to DataDimension component
Besides the "n of 1" string in the chip with the warning icon, the
tooltip will read "Only 'item name' in use".
@jenniferarnesen
Copy link
Collaborator

Chip color issue in item selector:

When open the facility type item selector, and choose more than one facility type, the chip colors for the non-top items are faded green, but they should be the normal chip green for selected items. It may be getting this style from the rules for the data element.

image

@edoardo edoardo removed the WIP label Aug 20, 2019
@edoardo edoardo merged commit c142ffc into master Aug 21, 2019
@edoardo edoardo deleted the task/single-value-chart-type branch August 21, 2019 11:13
@dhis2-bot
Copy link
Contributor

🎉 This PR is included in version 33.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@dhis2-bot
Copy link
Contributor

🎉 This PR is included in version 33.1.13 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

None yet

4 participants