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

The position of color scale #33

Closed
idoidoido opened this issue Sep 5, 2020 · 2 comments
Closed

The position of color scale #33

idoidoido opened this issue Sep 5, 2020 · 2 comments
Assignees
Labels
answered The question has been answered but is in a waiting state question Further information is requested

Comments

@idoidoido
Copy link

Hi!

I have made Europe map using outline from World map data.
But, the color scale is right bottom of the map and hidden under several countries.
I cannot find the way to change the position of color scale or bring the scale to front.
Are there any methods for that?

Thank you.

@idoidoido idoidoido added the question Further information is requested label Sep 5, 2020
@sgratzl sgratzl self-assigned this Sep 5, 2020
@sgratzl
Copy link
Owner

sgratzl commented Sep 5, 2020

take a look at https://github.com/sgratzl/chartjs-chart-geo#legend-and-color-scale or https://codepen.io/sgratzl/pen/GRKLQBw

the legend position can be one of

position: 'left' | 'right' | 'top' | 'bottom' | 'top-left' | 'top-right' | 'top-right' | 'bottom-right';

you can also customize whether it is horizontal or vertical

@sgratzl sgratzl added the answered The question has been answered but is in a waiting state label Sep 5, 2020
@idoidoido
Copy link
Author

I have tried the option, but I did not notice that the position is inside colorScale.
Your example is very informative.
Thank you for your quick reply.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered The question has been answered but is in a waiting state question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants