Originally posted by Isomorphic
View Post
Window.alert(" doesn't display the point data "+chartcentertempx+ ":"+chartcentertempy);
}
will not execute.
It is drawn from the samples.
As stated before, I want click events to only act when fired within the pie sections.
In general I consider it "expected behavior" in a UI that clicks in a chart only act when the object is clicked, not when the nearest object isn't clicked on. I may have to filter out events clicked outside the pie area (distance from the center), but I'd need a reliable center and radius. Am I correct in that you said that radius worked, but not center?
>> Speculatively ... Even better would be to return the drawn chart object's dimensions and placement from nearest drawn value. The location and dimensions of a chart's rectangle of a bar or the dimensions and placement of a pie/doughnut section, etc. (Even booleans isInChart(); isInLegend(); would be great.)
BTW: I did try iterations though the (Canvas)chart for drawn items (Sector) children, but no luck. I expected that to work.
<< Do not let this speculation distract from the post's question.
You haven't responded to the core issue, chart.getChartCenter().getX() doesn't appear to work. q = chart.getChartCenter().getX();
The same analogy for interaction would be true for a button, I have to click on the "Submit Reply" button to respond to this posting, not near the button.
get nearest drawn values does not appear to have a way to move forward to do this.
I originally thought that I was doing something incorrectly and would need to iterate through the facetcharts. (It's why I commented that the API should return an array of points for chart centers).
Leave a comment: