We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f40dbd4 commit 92ff540Copy full SHA for 92ff540
src/components/legend/helpers.js
@@ -20,6 +20,10 @@ exports.isGrouped = function isGrouped(legendLayout) {
20
return (legendLayout.traceorder || '').indexOf('grouped') !== -1;
21
};
22
23
+exports.isVertical = function isVertical(legendLayout) {
24
+ return legendLayout.orientation !== 'h';
25
+};
26
+
27
exports.isReversed = function isReversed(legendLayout) {
28
return (legendLayout.traceorder || '').indexOf('reversed') !== -1;
29
0 commit comments