Skip to content

Commit

Permalink
feat: implement skipRounding option (DHIS2-16870)
Browse files Browse the repository at this point in the history
  • Loading branch information
edoardo committed Feb 21, 2024
1 parent 49d1860 commit c7a1140
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
5 changes: 4 additions & 1 deletion src/components/DownloadMenu/useDownload.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,10 @@ const useDownload = (relativePeriodDate) => {
req = getAnalyticsRequestForOutlierTable({
analyticsEngine,
visualization,
options: { showHierarchy: visualization.showHierarchy },
options: {
showHierarchy: visualization.showHierarchy,
skipRounding: visualization.skipRounding,
},
forDownload: true,
})

Expand Down
12 changes: 8 additions & 4 deletions src/modules/options/outlierTableConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,20 @@ import FontSize from '../../components/VisualizationOptions/Options/FontSize.js'
import Outliers from '../../components/VisualizationOptions/Options/OutliersForOutlierTable.js'
import OutliersMaxResults from '../../components/VisualizationOptions/Options/OutliersMaxResults.js'
import ShowHierarchy from '../../components/VisualizationOptions/Options/ShowHierarchy.js'
import SkipRounding from '../../components/VisualizationOptions/Options/SkipRounding.js'
import getDisplayTemplate from './sections/templates/display.js'
import getDataTab from './tabs/data.js'
import getOutliersTab from './tabs/outliers.js'
import getStyleTab from './tabs/style.js'

export default () => [
getDataTab([
{
key: 'data-section-1',
content: React.Children.toArray([<OutliersMaxResults />]),
},
getDisplayTemplate({
content: React.Children.toArray([
<SkipRounding />,
<OutliersMaxResults />,
]),
}),
]),
getStyleTab([
{
Expand Down

0 comments on commit c7a1140

Please sign in to comment.