Small changes to the data viz colors and chart sizing

This commit is contained in:
Jonathan Bobel
2024-08-08 16:29:35 -04:00
parent 7d6b209c8d
commit 28bc4befbe
3 changed files with 4 additions and 4 deletions

View File

@@ -4,7 +4,7 @@
const COLORS = {
delivered: '#0076d6',
failed: '#fa9441',
failed: '#c6cace',
text: '#666'
};

View File

@@ -21,7 +21,7 @@
var svg = d3.select("#totalMessageChart");
var width = chartContainer.clientWidth;
var height = 64;
var height = 50;
// Ensure the width is set correctly
if (width === 0) {
@@ -62,7 +62,7 @@
.attr("x", 0) // Initially set to 0, will be updated during animation
.attr("y", 0)
.attr("height", height)
.attr("fill", '#fa9441')
.attr("fill", '#c6cace')
.attr("width", 0) // Start with width 0 for animation
.on('mouseover', function(event) {
tooltip.style('display', 'block')

View File

@@ -2,7 +2,7 @@
$delivered: color('blue-50v');
$pending: color('green-cool-40v');
$failed: color('orange-30v');
$failed: color('gray-cool-20');
.chart-container {
display: flex;