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

Custom position for the legend #5

Open
3 tasks
lorentey opened this issue Mar 1, 2017 · 0 comments
Open
3 tasks

Custom position for the legend #5

lorentey opened this issue Mar 1, 2017 · 0 comments

Comments

@lorentey
Copy link
Collaborator

lorentey commented Mar 1, 2017

  • The chart should be improved so that the legend is automatically placed in a corner where it doesn't intersect any of the curves.

  • I should also be able to click and drag the legend to move it somewhere else, in case it happens to cover some interesting area.

  • There should be a command to forget the custom position and restore automatic layout.

The chart renderer already includes support for drawing the legend at a custom position. The position is given as a relative offset vector to one of the corners of the chart. It is important to anchor the legend to one of the corners, so that the user does not need to keep repositioning the legend after resizing the chart.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant