mit-cml / appinventor-sources

MIT App Inventor Public Open Source
http://appinventor.mit.edu/appinventor-sources/
Apache License 2.0
1.45k stars 2.04k forks source link

Custom legend data for Charts #2760

Open ewpatton opened 1 year ago

ewpatton commented 1 year ago

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 commented 1 year ago

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.

Gairick52 commented 1 year ago

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

dhruvpatidar359 commented 1 year ago

@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 commented 3 months ago

@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!