topmobile1201 / core-plot

Automatically exported from code.google.com/p/core-plot
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

CPTPieChart does not relay touch to CPTPlot for its labels #579

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
[What steps will reproduce the problem?]

1.Setup a simple pie chart with a datasource that supplies 
    -dataLabelForPlot:recordIndex:

2.In the plot's delegate, implement both
    -pieChart:sliceWasSelectedAtRecordIndex:
and
    -plot: dataLabelWasSelectedAtRecordIndex:

3. Tap on the label

[What is the expected output? What do you see instead?]
-plot:dataLabelWasSelectedAtRecordIndex: should be called, but it does not.

[What version of the product are you using? On what operating system?]
CorePlot r1.3 on iOS Simulator

[Please provide any additional information below.]
Consider CPTPieChart's -pointingDeviceDownEvent:atPoint:.
The current implementation ignores any other delegations if the delegate 
responds to 
    -pieChart:sliceWasSelectedAtRecordIndex:
but the user did not tap on a slice, by returning NO.
Maybe it should call super and return it instead?

**: To save space, libCorePlot-CocoaTouch.a was not included in the upload.

Original issue reported on code.google.com by ytrfa...@gmail.com on 7 Sep 2013 at 4:28

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by eskr...@mac.com on 7 Sep 2013 at 8:16

GoogleCodeExporter commented 8 years ago

Original comment by eskr...@mac.com on 7 Sep 2013 at 8:17

GoogleCodeExporter commented 8 years ago
This issue was closed by revision aa2358b892bf.

Original comment by eskr...@mac.com on 7 Sep 2013 at 8:56