From e01b83d3d385d4cb458d8c7f465a4093b6ceee07 Mon Sep 17 00:00:00 2001 From: Kei Takahashi Date: Wed, 8 Jul 2020 17:52:07 -0400 Subject: [PATCH] Fix issue #144 Top border line is missing when yAxis.reversed is set to true --- grouped-categories.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/grouped-categories.js b/grouped-categories.js index 7b7be59..f4fb8f3 100644 --- a/grouped-categories.js +++ b/grouped-categories.js @@ -503,8 +503,10 @@ // render grid for "normal" categories (first-level), render left grid line only for the first category if (isFirst) { gridAttrs = horiz ? - [axis.left, xy.y, axis.left, xy.y + axis.groupSize(true)] : axis.isXAxis ? - [xy.x, axis.top, xy.x + axis.groupSize(true), axis.top] : [xy.x, axis.top + axis.len, xy.x + axis.groupSize(true), axis.top + axis.len]; + [axis.left, xy.y, axis.left, xy.y + axis.groupSize(true)] : + axis.isXAxis ? + [xy.x, axis.top, xy.x + axis.groupSize(true), axis.top] : + [xy.x, axis.top + (axis.reversed ? 0 : axis.len), xy.x + axis.groupSize(true), axis.top + (axis.reversed ? 0 : axis.len)]; addGridPart(grid, gridAttrs, tickWidth); }