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

Make legend for point size #274

Open
jwildfire opened this issue Jul 15, 2019 · 1 comment
Open

Make legend for point size #274

jwildfire opened this issue Jul 15, 2019 · 1 comment
Labels
good first issue Good for newcomers

Comments

@jwildfire
Copy link
Contributor

Draw a point size legend onLayout(), and update it in OnResize/customizePoints/setPointSize()

Basic idea is in this example and lots of others ...

@jwildfire jwildfire added the good first issue Good for newcomers label Jul 15, 2019
@jwildfire
Copy link
Contributor Author

As discussed, we're looking for a legend above the chart that is visible when the point size control is not set to "None".

The general workflow here is probably something like this:

Note that the size scale is defined in setPointSize(), and is bound to the chart object as chart.sizeScale. You'll probably want to re-use it to create the legend. Feel free to just put the code to create the legend in that setPointSize() file or to break it out in to its own method saved elsewhere and called from onResize()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant