mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-25 00:33:58 -04:00
changed scale y
This commit is contained in:
@@ -64,7 +64,7 @@
|
|||||||
.padding(0.1);
|
.padding(0.1);
|
||||||
// Adjust the y-axis domain to add some space above the tallest bar
|
// Adjust the y-axis domain to add some space above the tallest bar
|
||||||
const maxY = d3.max(deliveredData.map((d, i) => d + (failedData[i] || 0)));
|
const maxY = d3.max(deliveredData.map((d, i) => d + (failedData[i] || 0)));
|
||||||
const y = d3.scaleLinear()
|
const y = d3.scaleSqrt()
|
||||||
.domain([0, maxY + 2]) // Add 2 units of space at the top
|
.domain([0, maxY + 2]) // Add 2 units of space at the top
|
||||||
.nice()
|
.nice()
|
||||||
.range([height, 0]);
|
.range([height, 0]);
|
||||||
|
|||||||
Reference in New Issue
Block a user