Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
140
Multi line Legends
posted

Hi,

I am using IGLegend to add legends to the charts in my iPhone App. I have set the orientation to IGOrientationHorizontal. Here, is there a way to wrap the legend items as the items out of bounds of the legend view are not visible?

Parents
  • 21382
    Verified Answer
    posted

    Hello Laxman,

    The IGLegend uses a scroll viewer to display it's legend items.  So in horizontal mode it would scroll left and right.  So by default, no, you cannot get the items to wrap.  

    However, the .legend property of the chartview takes a IGLegendBase object, so we can make our own legend to modify the display.  I mocked up a sample showing what I believe you are looking for.    

    Attached is a sample that creates a custom legend and the view controller sample which shows it being used.

    Archive.zip
Reply Children
No Data