Scatterplot coloring of base releases
Test and deploy / deploy (push) Successful in 30s

This commit is contained in:
2026-07-29 10:38:14 -05:00
parent e707088706
commit 60d0621750
5 changed files with 50 additions and 3 deletions
+6 -3
View File
@@ -75,8 +75,9 @@ function plotColors() {
return {
text: styles.getPropertyValue('--text-muted').trim() || '#59636e',
grid: styles.getPropertyValue('--border').trim() || '#d0d7de',
point: styles.getPropertyValue('--link').trim() || '#0969da',
hover: styles.getPropertyValue('--focus').trim() || '#bf8700'
base: styles.getPropertyValue('--plot-base').trim() || '#2e8b57',
hotfix: styles.getPropertyValue('--plot-hotfix').trim() || '#2c7be5',
hover: styles.getPropertyValue('--plot-hover').trim() || '#d97706'
};
}
@@ -181,7 +182,9 @@ function drawPlot() {
context.beginPath();
const hovered = point.issueNumber === hoveredPoint?.issueNumber;
context.arc(point.x, point.y, hovered ? 5 : 3, 0, Math.PI * 2);
context.fillStyle = hovered ? colors.hover : colors.point;
context.fillStyle = hovered
? colors.hover
: (/-h\d+(?:\D|$)/i.test(point.release) ? colors.hotfix : colors.base);
context.globalAlpha = hovered ? 1 : 0.72;
context.fill();
});