francescoleoni98 / FLCharts

Easy to use and highly customizable charts library for iOS
MIT License
266 stars 22 forks source link

Data Labels for Line and Bar Charts #44

Open SvenMuc opened 2 years ago

SvenMuc commented 2 years ago

Discussed in https://github.com/francescoleoni98/FLCharts/discussions/36

Originally posted by **SvenMuc** May 12, 2022 Hi, really cool library, but I still miss some basic features. It would be really nice if we can show data labels in the line and bar charts. Additionally the location should be configureable (e.g. above, below line marker, inside, center or outside of a bar). Would do you think? Regards Sven
mrp-vjh commented 2 years ago

Yeah, I also noticed that the date values when using a line chart don't space correctly with the text width which results in the text overlapping one another.

francescoleoni98 commented 2 years ago

Hi @mrp-vjh, can you send a screenshot? Thank you

mrp-vjh commented 2 years ago

@francescoleoni98

Sorry for the delayed response. Maybe it's something on my end I can manipulate but here is a screenshot of how my date values look.

Screen Shot 2022-07-04 at 11 49 45 AM

I have also made it so I can filter the line graph by selecting values on the legend so to keep the Y axis fixed I need to set the min and max values for the unselected values in the legend which is why you will see red and green lines along the bottom of the graph.