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

Legend at bottom of graph show on more than one line. #532

Closed
bravevu opened this issue Nov 4, 2015 · 6 comments
Closed

Legend at bottom of graph show on more than one line. #532

bravevu opened this issue Nov 4, 2015 · 6 comments

Comments

@bravevu
Copy link

bravevu commented Nov 4, 2015

I draw graph having 7 data sets, use ChartLegendPositionBelowChartCenter for position of legend. Because legend length is so long, can't show all in one line, I want to show in 2 lines. How can we do it?

@liuxuan30
Copy link
Member

I guess you might want to custimze it? I remember we don't support the wrapping lines right now?

My workaround is I had my own legend implementation and put it in a scroll view. I once suggest @danielgindi to put the legend in a scroll view.

@danielgindi
Copy link
Collaborator

If I remember correctly wrapping lines is supported

‏בתאריך יום חמישי, 5 בנובמבר 2015, Xuan notifications@github.com כתב:

I guess you might want to custimze it? I remember we don't support the
wrapping lines right now?

My workaround is I had my own legend implementation and put it in a scroll
view. I once suggest @danielgindi https://github.com/danielgindi to put
the legend in a scroll view.


Reply to this email directly or view it on GitHub
#532 (comment)
.

@danielgindi
Copy link
Collaborator

Just set legend.wordWrapEnabled = true

@cuddle-sujeet
Copy link

I have a stacked bar graph and want the labels in the legend to come below each other in a vertical stack
have used
graphView.legend.maxSizePercent = 0.70
graphView.legend.wordWrapEnabled = true
still doesnt work

@a-radwan
Copy link

a-radwan commented Jun 29, 2016

Is it possible to trim the legend view , to be able to display limited number of lines only , specific height or limited number of values?

@liuxuan30
Copy link
Member

@a-radwan I guess not, take a look at ChartLegend

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

5 participants