Skip to content

Commit

Permalink
Merge pull request #123 from CanDIG/feature/no-decimals
Browse files Browse the repository at this point in the history
Remove the ability for decimals to appear in any of the summary graphs
  • Loading branch information
OrdiNeu authored Feb 27, 2024
2 parents 6d11903 + a4a0679 commit ceb7c3d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/views/summary/CustomOfflineChart.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,8 @@ function CustomOfflineChart(props) {
fontWeight: 'normal'
}
},
xAxis: { title: { text: DataVisualizationChartInfo[chartData].xAxis }, categories },
yAxis: { title: { text: DataVisualizationChartInfo[chartData].yAxis } },
xAxis: { title: { text: DataVisualizationChartInfo[chartData].xAxis }, categories, allowDecimals: false },
yAxis: { title: { text: DataVisualizationChartInfo[chartData].yAxis }, allowDecimals: false },
colors: stackedTheme,
plotOptions: {
series: {
Expand Down Expand Up @@ -202,8 +202,8 @@ function CustomOfflineChart(props) {
fontWeight: 'normal'
}
},
xAxis: { title: { text: DataVisualizationChartInfo[chartData]?.xAxis }, categories },
yAxis: { title: { text: DataVisualizationChartInfo[chartData]?.yAxis } },
xAxis: { title: { text: DataVisualizationChartInfo[chartData]?.xAxis }, categories, allowDecimals: false },
yAxis: { title: { text: DataVisualizationChartInfo[chartData]?.yAxis }, allowDecimals: false },
colors: [theme.palette.primary.dark],
series: [{ data, colorByPoint: true, showInLegend: false }],
tooltip: {
Expand Down Expand Up @@ -253,8 +253,8 @@ function CustomOfflineChart(props) {
fontWeight: 'normal'
}
},
xAxis: { title: { text: DataVisualizationChartInfo[chartData].xAxis } },
yAxis: { title: { text: DataVisualizationChartInfo[chartData].yAxis } },
xAxis: { title: { text: DataVisualizationChartInfo[chartData].xAxis }, allowDecimals: false },
yAxis: { title: { text: DataVisualizationChartInfo[chartData].yAxis }, allowDecimals: false },
tooltip: {
pointFormat: '<b>{point.name}:</b> {point.y}'
},
Expand Down

0 comments on commit ceb7c3d

Please sign in to comment.