-
Notifications
You must be signed in to change notification settings - Fork 63
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
Legend placement goes haywire when any of the aspect ratio classes are used #28
Comments
Affecting me as well. Using ct-major-tenth |
Well, chartist-plugin-legend places the If you want the
How good that is and if that should be PR'd into the master sometimes, i can't say really; you might run into some unexpected styling problems because the legend is now somewhere outside the container, depending on your implementation. |
We could also allow the |
That sounds sweet too, might look into it sometime soon. |
Works as of |
I'm closing this as this should be resolved as of |
I am using the "ct-major-second" class for making my chart responsive and auto resizing the bars and stuff.... but any of these classes set the css "top" property to "0" hence making the legend overlap. This can be fixed using custom css, but it isnt recommended as it wont keep the chart and the legend dynamic (i have many pages that use these charts, few having 2 bars, few 5, few 10, etc etc) and i wont be able to handle the height of the legend in all cases if i keep it static.
Is there any way in which i could place the legend outside the entire chart container
as it would be very easy to handle such a situation in that case.If not how do you suggest i could handle this...?
The text was updated successfully, but these errors were encountered: