We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
We support ordinal color scales:
Plot.legend({color: {type: "ordinal", domain: d3.range(10)}})
But trying to do the same with an opacity scale results in an error:
Error: ordinal opacity scales are not supported
Plot.legend({opacity: {type: "ordinal", domain: d3.range(10)}})
I see no reason we couldn’t support ordinal opacity scales by dividing the range interval [0, 1] equally based on the cardinality of the domain.
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
We support ordinal color scales:
But trying to do the same with an opacity scale results in an error:
I see no reason we couldn’t support ordinal opacity scales by dividing the range interval [0, 1] equally based on the cardinality of the domain.
The text was updated successfully, but these errors were encountered: