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

Cant align plugins.legent.labels correctly #406

Open
batata004 opened this issue Dec 29, 2023 · 0 comments
Open

Cant align plugins.legent.labels correctly #406

batata004 opened this issue Dec 29, 2023 · 0 comments

Comments

@batata004
Copy link

batata004 commented Dec 29, 2023

Please take a look at this graph:

https://www.quemfazsite.com.br/temp/teste1.php

Look at the legend (printscreen below with zoom so you can see better) and see that its text is not vertically aligned with the box.

image

You can see in the code that I set both boxHeight and fontSize to 12 (I copied to you below) and despite that, the rectangle box is not well aligned with the text. I think you should vertical-align:middle both the box and the text so they get well aligned.

legend:{
	display:true,
	position:"top",
	align:"center",
	labels:{
		boxWidth:12,
		boxHeight:12,
		useBorderRadius:true,
		borderRadius:1,
		font:{
			size:12,
		}
	}
}
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