Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 92ff540

Browse files
committed
Legend: add helper.isVertical(legendLayout)
1 parent f40dbd4 commit 92ff540

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/components/legend/helpers.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ exports.isGrouped = function isGrouped(legendLayout) {
2020
return (legendLayout.traceorder || '').indexOf('grouped') !== -1;
2121
};
2222

23+
exports.isVertical = function isVertical(legendLayout) {
24+
return legendLayout.orientation !== 'h';
25+
};
26+
2327
exports.isReversed = function isReversed(legendLayout) {
2428
return (legendLayout.traceorder || '').indexOf('reversed') !== -1;
2529
};

0 commit comments

Comments
 (0)