redpandatronicsuk / arty-charty

React Native plugin for rendering charts using ART
MIT License
43 stars 7 forks source link

Can we display some information in the chart? #1

Open Davidmeteor opened 7 years ago

Davidmeteor commented 7 years ago

Hi : )

This lib is so cool and I really love it. I have one question, can we add some information, like label name, value into the chart (like ArtyChartyPie)? I can't find the corresponding API in the readme.

Thanks!

redpandatronicsuk commented 7 years ago

Hi,

thanks for your comment and apologies for replying so late. Because the charts are shown on mobile displays with little space, I thought it is best to not use labels and just have points clickable and then in the click callback we tell you the point that has been clicked and you can decide how to display that value to the user.

I do not oppose using labels however. Could you make a simple sketch or annotated screenshot or something like that how you think the labels could be displayed and I'll try to add that feature. Thanks

redpandatronicsuk commented 7 years ago

I thought about this a bit more. Do you want labels for points, such as points with label or more like a legend: legend?