diogobernardino / williamchart

Android Library to rapidly develop attractive and insightful charts in android applications.
5.1k stars 800 forks source link

how to can show bar value on bar? #267

Open iranandroid opened 4 years ago

iranandroid commented 4 years ago

Hi everyone i wanna to show bar value top of every bar. is it possible?

chriswiesner commented 4 years ago

afaik it was possible in v2, but it's not supported for v3.

I'd also need to display values on top of the bars

siavash-sajjad commented 4 years ago

A progress on this task?

siavash-sajjad commented 4 years ago

@diogobernardino hi, can you guide me for add this feature? i wanna publish my app, but i cann't find nice chart like your chart

diogobernardino commented 4 years ago

I recently introduced tooltips which could be added as complementary dependencies (e.g. tooltip-slider:3.7.0). I would expect this feature to be delivered as a tooltip too, but this is a just guess for now.

cacato86 commented 4 years ago

Hey @diogobernardino Any news on that? Interested to show the value of each bar too.

diogobernardino commented 4 years ago

As mentioned in my previous comment, I expect this to be very similar to the implementation of the slider tooltip. I would encourage to look at that particular implementation and develop something similar which best fits your needs.

cacato86 commented 4 years ago

I'm taking a look, but as far as I know, tooltip only works when you click on a bar (or at least is the only way that I've seen where you have the value of each bar). Have I missed something?

Thank you anyways for your great job.

diogobernardino commented 3 years ago

Have I missed something?

No, I think you're right, I might have misunderstood the feature. Perhaps it's worth having some examples to look at.

sebastinto commented 3 years ago

They probably mean something like below. Labels at the bottom, values at the top.

joel-apollo commented 3 years ago

I almost had this working for tooltips, but it doesn't quite work on the current interface. See https://github.com/diogobernardino/williamchart/issues/298