Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change legend position #228

Closed
linde15 opened this issue Nov 26, 2023 · 2 comments
Closed

Change legend position #228

linde15 opened this issue Nov 26, 2023 · 2 comments
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Milestone

Comments

@linde15
Copy link

linde15 commented Nov 26, 2023

The legend of D3 charts is currently being displayed in the upper right corner of a chart. For my use case, it's covering the most recent data.

I'd like to be able to define a different legend position, either within the chart area or outside the chart area (but still inside the tile area).

image

@linde15 linde15 added the enhancement New feature or request label Nov 26, 2023
@Daveiano Daveiano added the documentation Improvements or additions to documentation label Nov 27, 2023
@Daveiano Daveiano added this to the 3.5.0 milestone Nov 27, 2023
@Daveiano
Copy link
Owner

Yes, that's right, the legend position should be configurable.

I will see what I can do about positioning the legend outside the chart area. This will be included in the next release, please be patient!

@Daveiano
Copy link
Owner

Daveiano commented Feb 3, 2024

I added a new property for configuring the charts: legendPosition:

One of "top right", "top left", "bottom right", "bottom left", "top" or "bottom". Default is "top right". "Top" and "bottom" will show the legend outside of the chart.

From left to right: "top", "bottom" and "top left" legend position:

Legends

This will be included in the next release, v3.5.0 - so please stay tuned! ;)

@Daveiano Daveiano closed this as completed Feb 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants