Skip to content
New issue

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

Center and TextColor DiscreteColorLegend #1422

Open
DanielleWeustenenk opened this issue Jun 17, 2021 · 0 comments
Open

Center and TextColor DiscreteColorLegend #1422

DanielleWeustenenk opened this issue Jun 17, 2021 · 0 comments

Comments

@DanielleWeustenenk
Copy link

Hey,

I'm currently making a DiscreteColorLegend and I can't figure out how to center it and how to change the text color of it. Am I missing something or is this just not implemented (yet)?

This is what I tried for the text color, but it did not work out:
<DiscreteColorLegend orientation="horizontal" height={200} width={300} items={items} style={{fill:"red", fontSize:"20px", text:{fill: "red"}}} />

These are my items:
const items = [ {title: 'A', color:"#1E3A8A", strokeWidth: 15}, {title: 'B', color: "#3B82F6", strokeWidth: 15} ];

Thankyou already! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant