This topic is locked
[SOLVED]

 Chart Legend

6/7/2020 8:46:22 PM
PHPRunner General questions
R
RBrogen author

Hi Everyone,
I have searched the forums and the anychart docs to find a way to have my legend be vertical instead of horizontal so I can try and get it to not have the multi-pages shown in my current layout below. Any suggestions would be greatly appreciated.

Spider Webster 6/17/2020

Its all in the manual.

Add to events, Charts page, Javascript Chart Modify
chart.legend().position("left");

chart.legend().itemsLayout("vertical");
and to control the size add:-
chart.legend().maxHeight("120%");

chart.legend().maxWidth("50%");
and to list by largest value add:-
chart.sort("desc");

R
RBrogen author 6/17/2020



Its all in the manual. RTFM

Add to events, Charts page, Javascript Chart Modify
chart.legend().position("left");

chart.legend().itemsLayout("vertical");
and to control the size add:-
chart.legend().maxHeight("120%");

chart.legend().maxWidth("50%");
and to list by largest value add:-
chart.sort("desc");


Hi Spider Webster, I actually had found the answer and marked this as solved with resolution. I did and do read before asking the question .... your smart ass remarks are not conducive to an open community which this FORUM is meant to be. If you feel compelled to respond in nasty ways, just do us a favor and keep your mouth shut and don't bother replying next time.
Have a great day!

Spider Webster 6/17/2020

Hi RBrogen

I am so sorry it wasnt meant to come across in that way at all. I am very new to this and I use the search function in the forum to find things I maybe wanting to solve.

I too had this exact question. I was just trying to be helpful to newbies like myself with leaving an answer to the question. It wasnt really directed at you as I knew you had solved, more to someone who may do a search on the problem.
Im far from smart ass, I tell you <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=91732&image=1&table=forumreplies' class='bbc_emoticon' alt=':)' /> Maybe I should have worded different Im sorry.
Regards

Spider

R
RBrogen author 6/17/2020



Hi RBrogen

I am so sorry it wasnt meant to come across in that way at all. I am very new to this and I use the search function in the forum to find things I maybe wanting to solve.

I too had this exact question. I was just trying to be helpful to newbies like myself with leaving an answer to the question. It wasnt really directed at you as I knew you had solved, more to someone who may do a search on the problem.
Im far from smart ass, I tell you <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=91733&image=1&table=forumreplies' class='bbc_emoticon' alt=':)' /> Maybe I should have worded different Im sorry.
Regards

Spider


No worries Spider ... it's all good. This forum is full of extremely helpful folks with massive amounts of knowledge. As a general rule, everyone is urged to read and search thoroughly before posting the question .... sometimes however, the words we use to search are not close enough to a previous answer so as to make it easy to find. Most folks are very supportive and understand that. Welcome and hope you have lots of successful projects with this great product.
Randy

Spider Webster 6/17/2020



No worries Spider ... it's all good. This forum is full of extremely helpful folks with massive amounts of knowledge. As a general rule, everyone is urged to read and search thoroughly before posting the question .... sometimes however, the words we use to search are not close enough to a previous answer so as to make it easy to find. Most folks are very supportive and understand that. Welcome and hope you have lots of successful projects with this great product.
Randy



Thanks Randy, The product is great and am so amazed that I have created a great project in the first place "with little or no coding" : )

I love searching for solutions and its a great achievement when something is fixed/solved, like playing a game and getting to the next level.

All the best from rainy Yorkshire England.,.,.