Closed NDTChan closed 6 years ago
Issue titles should be short, concise headlines. Perhaps just "Display Legend in rows and columns" would work fine. Also, you have a big box to write more detail, put your full question in that, not the title.
Anyway, currently this library only support displaying legends in a vertical or horizontal alignment. Sorry to say, but for now you'll need to pick one if you want to use the built-in legends.
HOWEVER! You are in luck!
Personally, I draw my own legends. I like to draw the labels in their color for the data they represent, so I just stuck a TextView on top of the chart (in the xml using android:translationZ="5dp"
). Drawing your own legend gives you a lot more freedom. If you want to keep the same style that MPAndroidChart uses, you can use a RelativeLayout or something similar, set it's width and height to 1 or 2dp, and make it's background color the color of the data, then snap the TextView next to it.