What options are available for chart legends?

22 views
Skip to first unread message

davidac...@gmail.com

unread,
May 1, 2017, 12:36:08 PM5/1/17
to JSXGraph
Hi folks.
    I am trying to create a legend for a graph, but the colored bars of the legend are just too big.  I can't seem to find any references that will help me figure out how to make these smaller.  Any ideas? 
Thanks!
David
legend.PNG

Alfred Wassermann

unread,
May 9, 2017, 8:16:40 AM5/9/17
to JSXGraph
The attribute you are searching for is `lineLength` (in user coordinates). The default value is 1.
Beside the attributes which are available for lines, there is the additional attribute `rowHeight` (in pixel).

The legend object is user contributed. At the moment we are working on refactoring and documenting the chart module.

Best wishes,
Alfred

Reply all
Reply to author
Forward
0 new messages