dringtech / ifg-charts

Visualisation component library for IfG
MIT License
1 stars 1 forks source link

Legend centering #3

Closed gilesdring closed 1 month ago

gilesdring commented 6 months ago

Centre the legend to the width of the plot.

Questions:

  1. Is each line centred independently, or is the legend centred as a block
  2. Does this affect the line breaks i.e. should an attempt be made to ensure each line of the legend is of a similar length / has a similar number of items
gilesdring commented 5 months ago

@philipnye Could you answer the questions above so I can let you know how involved this is as a task...

gilesdring commented 5 months ago

Basically, the layouts options are something like

image

In this image

philipnye commented 5 months ago

@gilesdring Incredibly helpful - we're literally just discussing this. Option A looks a good one to us. Thanks

gilesdring commented 5 months ago

OK - so simple wrapping to a maximum, centered per line. It may end up with a very short line (1 item) on the last line. Feels like a good first step.

sachinsavur commented 2 months ago

Looks great, thanks for your work on this Giles! Happy to close this one.