Skip to content

Commit df073d8

Browse files
authored
relax cardinality test (#774)
1 parent bc68508 commit df073d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/style.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ function groupAesthetics({ariaLabel: AL, title: T, fill: F, fillOpacity: FO, str
186186

187187
function groupZ(I, Z, z) {
188188
const G = group(I, i => Z[i]);
189-
if (z === undefined && G.size > I.length >> 2) {
189+
if (z === undefined && G.size > I.length >> 1) {
190190
warn(`Warning: the implicit z channel has high cardinality. This may occur when the fill or stroke channel is associated with quantitative data rather than ordinal or categorical data. You can suppress this warning by setting the z option explicitly; if this data represents a single series, set z to null.`);
191191
}
192192
return G.values();

0 commit comments

Comments
 (0)