svg-graph2 icon indicating copy to clipboard operation
svg-graph2 copied to clipboard

Legend inline at bottom

Open noraj opened this issue 5 years ago • 5 comments

key_position: :right

image

key_position: :bottom

image

Feels like when using :bottom, the legend should be inline rather than in block.

noraj avatar Jan 17 '20 17:01 noraj

@noraj could you please indicate where you would expect the legend? or are you asking for an additional option to place the legend as overlay on the graph?

lumean avatar Apr 12 '20 13:04 lumean

@noraj could you please indicate where you would expect the legend?

Exactly where it is but diplayed inline rather than in block when bottom is used.

noraj avatar Apr 12 '20 21:04 noraj

thanks for the reply, but can you please give some more details? I dont understand what you mean. What is the difference between inline and block? Are you referring to CSS properties or something else? e.g. display all legend items on a single line instead of multiple lines?

lumean avatar Apr 12 '20 21:04 lumean

display all legend items on a single line instead of multiple lines?

Yes exactly, like this, in a line rather than in a block:

image

A block is nice to be displayed in a column (vertical), eg with key_position: :right and in a line is nice to be displayed in a row (horizontal) eg. key_position: :bottom.

A block when horizontal waste too much space.

noraj avatar Apr 12 '20 23:04 noraj

Ok thanks for clarification. Will mark this as enhancement and we can introduce either a new attribute for legend style or another position option. E.g. single column or single row or even grid layout might make sense.

lumean avatar Apr 15 '20 19:04 lumean