From 3e4382c92343adb71dd0bc5fc0fc43cc43f2dde3 Mon Sep 17 00:00:00 2001 From: ankurjuneja Date: Mon, 17 Aug 2026 14:05:45 -0700 Subject: [PATCH] Limit the ordinal x-axis padding removal to the calendar axis --- webapp/TargetedMS/js/QCTrendPlotPanel.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/webapp/TargetedMS/js/QCTrendPlotPanel.js b/webapp/TargetedMS/js/QCTrendPlotPanel.js index 57ddfa022..4fe3c9499 100644 --- a/webapp/TargetedMS/js/QCTrendPlotPanel.js +++ b/webapp/TargetedMS/js/QCTrendPlotPanel.js @@ -2391,8 +2391,7 @@ Ext4.define('LABKEY.targetedms.QCTrendPlotPanel', { // shared with the jitter band so bar/rect widths match it, and neither overruns the closest day spacing return LABKEY.vis.calendarSlotWidth(plot.scales.x, plot.grid.rightEdge - plot.grid.leftEdge); } - // floored at 10 slots, matching calendarSlotWidth - the ordinal axis is no longer padded, so a sparse plot would give a rect the width of the grid - return (plot.grid.rightEdge - plot.grid.leftEdge) / Math.max(plot.scales.x.scale.domain().length, 10); + return (plot.grid.rightEdge - plot.grid.leftEdge) / plot.scales.x.scale.domain().length; }, toggleGuideSetMsgDisplay : function() {