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 legend data for Charts #2760

Open
ewpatton opened this issue Oct 3, 2022 · 4 comments
Open

Custom legend data for Charts #2760

ewpatton opened this issue Oct 3, 2022 · 4 comments

Comments

@ewpatton
Copy link
Member

ewpatton commented Oct 3, 2022

Describe the desired feature

Rather than trying to infer labels and colors for the legend, allow the user to specify the information using an associative list or dictionary.

Give an example of how this feature would be used

For a single data series, the Chart erroneously tries to treat each element in the line as its own entry in the legend, making the feature effectively useless.

Why doesn't the current App Inventor system address this use case?

See previous note.

Why is this feature beneficial to App Inventor's educational mission?

Explaining one's data is an important skill to learn, and giving students additional control over how their data are interpreted can help them build this skill.

@ewpatton
Copy link
Member Author

ewpatton commented Oct 3, 2022

One thing we have to decide with this new property is which direction things go. In particular, if we were to use dictionaries I think the more appropriate way to specify the legend data would be {"category1": <color1>, "category2": <color2>, ...}.

For an example of what it might look like, see this post.

@bobparks @stezelMIT @anqizzz8989 I'm also interested in hearing your thoughts on this.

@ewpatton ewpatton changed the title Custom label data for Charts Custom legend data for Charts Oct 3, 2022
@Gairick52
Copy link

@ewpatton i am new to open source can you suggest me some beginner friendly issues

@dhruvpatidar359
Copy link
Contributor

@ewpatton can give me some , more deep understanding of the feature.

I believe you are referring to offering a dictionary that will take the specific data and the related colour and plot them on the graph.

simply a method of unique colour modification.

@changminbark
Copy link

@ewpatton
Hello, my name is Chang Min and I am a Sophomore CS student at Bucknell University interested in tackling this issue. I would like to ask whether it is still available. Thank you!

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

4 participants