BirdRF / achartengine

Automatically exported from code.google.com/p/achartengine
0 stars 0 forks source link

[Feature request] Highlight a bar in a BarChart #431

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
A nice way to highlight a bar would be a nice addition to this library. Right 
now, we can get the callback when clicking a bar chart like so:

stackedBarChart.setOnClickListener(new View.OnClickListener())

and get a SeriesSelection by calling stackedBarChart.getCurrentSeriesAndPoint() 
which provides us with the series and the point in the series. 

However, the only way to highlight this selection right now is to remove the 
selection from the series and add a new series with a new color on that 
position as explained by Dan on SO 
(http://stackoverflow.com/questions/18484794/change-color-of-selected-bar-in-ach
artengine).

Original issue reported on code.google.com by jo...@afrogleap.com on 1 Sep 2014 at 3:34