Skip to content

Legend spacing not proper #820

@bharat-mukheja

Description

@bharat-mukheja

The legend takes a lot of space from the graph even when not coinciding. e.g. look at the below graphs -
image
image

It shouldn't need that much space just to lay out two values. But I guess the legend is being processed independent of the graph hence the graph doesn't know about the spacing requirements. What can be done here is that.

As an extension, the spacing of the graph itself should be improved. For example, the below -

this is legend set as horizontal
image

this is legend set as vertical
image

No other change was done to the pie graph. Seems like the legend wants to be vertical always, but when asked to be vertical specifically, it takes extra space from the graph canvas.
I think we need a better spacing algorithm than this.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions