-
-
Notifications
You must be signed in to change notification settings - Fork 6k
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
Allow to align the Legend! #279
Comments
I think as long as you set the position to ChartLegendPositionRight, it will render vertically, to save space. You either use bottom position, or customize ChartLegendRenderer to whatever you like. |
Thanks for your support :) I'll try with the ChartLegendRenderer |
@hxdev Did you find a solution ? |
Today this attribute doesnt exist. legend.direction = ChartLegendDirectionLeftToRight; |
In case of someone ends up here like me. To set the legend position: chartView.legend.horizontalAlignment = .left
chartView.legend.verticalAlignment = .top |
I've create a BarChart with two BarChartDataSet.
Here is my init for the Legend:
The legend will display like this:
How can I align the Legend to Left to Right? Like this
Thank!
The text was updated successfully, but these errors were encountered: