ibrahimsaputra / achartengine

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

Make chart UI elements clickable #73

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Please make the chart UI elemenets clickable to support drill down type charts. 
 This should inlcude, at the minimum, the segments of a pie chart and the bars 
of a bar chart, but I would aim for a design that makes this as generic of a 
solution as possible.

Original issue reported on code.google.com by zvasv...@gmail.com on 30 Mar 2011 at 9:18

GoogleCodeExporter commented 9 years ago
This is an advanced feature that will probably be part of an eventual pro 
version.

Original comment by dandrome...@gmail.com on 30 May 2011 at 5:49

GoogleCodeExporter commented 9 years ago
That's fair.  I would definetely buy a royalty-free license if this were 
offered.

Original comment by zvasv...@gmail.com on 31 May 2011 at 1:09

GoogleCodeExporter commented 9 years ago
Issue 82 has been merged into this issue.

Original comment by dandrome...@gmail.com on 1 Jun 2011 at 4:17

GoogleCodeExporter commented 9 years ago
I made (most) chart element clickable - see the attached diff.

My approach does not work on vertical charts, and I didn't do the work for 
chart types that do not extend XYChart (for instance, pie chart elements are 
not clickable). Other than that, it works great. I tested bar charts (stacked 
and not), lines, scatters, etc and the combined charts.

Please take a look and let me know what you think of the approach. I'd love to 
improve this sufficiently to get it integrated into achartengine ASAP. Thanks!

Original comment by candrews...@gmail.com on 9 Jun 2011 at 4:19

Attachments:

GoogleCodeExporter commented 9 years ago
Here's an updated diff, adding the SeriesAndPointIndex class that I 
accidentally forgot to include last time.

For a demo of this feature, launch the "Embedded Chart Demo", add some points, 
and click on them - a toast will appear telling you which one you clicked on. 
Long press also works.

Take a look at the code in org.achartengine.chartdemo.demo.chart.XYChartBuilder 
for an example of how to use this new functionality.

Original comment by candrews...@gmail.com on 10 Jun 2011 at 8:01

Attachments:

GoogleCodeExporter commented 9 years ago
Updated diff against revision 225

Original comment by candrews...@gmail.com on 17 Jun 2011 at 7:21

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks to Craig, this feature was added to XY charts and is now available in 
the open-source version.
Fixed in SVN rev. r226.

Original comment by dandrome...@gmail.com on 30 Jun 2011 at 3:59