-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: gauge plot lines and range values in options (#654)
* Adds support for plot lines and custom range values options for Gauge charts * Updated Analytics dep to v3.2.0 Co-authored-by: Jan Henrik Øverland <[email protected]>
- Loading branch information
1 parent
9de60dd
commit 7736b29
Showing
11 changed files
with
124 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
/* eslint-disable react/jsx-key */ | ||
import React from 'react' | ||
import i18n from '@dhis2/d2-i18n' | ||
|
||
import TargetLine from '../../components/VisualizationOptions/Options/TargetLine' | ||
import BaseLine from '../../components/VisualizationOptions/Options/BaseLine' | ||
import AggregationType from '../../components/VisualizationOptions/Options/AggregationType' | ||
import HideTitle from '../../components/VisualizationOptions/Options/HideTitle' | ||
import HideSubtitle from '../../components/VisualizationOptions/Options/HideSubtitle' | ||
import AxisRange from '../../components/VisualizationOptions/Options/AxisRange' | ||
|
||
export default [ | ||
{ | ||
key: 'data-tab', | ||
label: i18n.t('Data'), | ||
content: [ | ||
{ | ||
key: 'data-lines', | ||
label: i18n.t('Lines'), | ||
content: React.Children.toArray([<TargetLine />, <BaseLine />]), | ||
}, | ||
{ | ||
key: 'data-advanced', | ||
label: i18n.t('Advanced'), | ||
content: React.Children.toArray([<AggregationType />]), | ||
}, | ||
], | ||
}, | ||
{ | ||
key: 'axes-tab', | ||
label: i18n.t('Axes'), | ||
content: [ | ||
{ | ||
key: 'axes-vertical-axis', | ||
label: i18n.t('Vertical (y) axis'), | ||
content: React.Children.toArray([<AxisRange />]), | ||
}, | ||
], | ||
}, | ||
{ | ||
key: 'style-tab', | ||
label: i18n.t('Style'), | ||
content: [ | ||
{ | ||
key: 'style-titles', | ||
label: i18n.t('Titles'), | ||
content: React.Children.toArray([ | ||
<HideTitle />, | ||
<HideSubtitle />, | ||
]), | ||
}, | ||
], | ||
}, | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters