Anyway, overriding mouseClickHandler function in ChartBase is not a 
right solution since right click is not handled by this function.

--- In [email protected], "tungchau81" <tungcha...@...> 
wrote:
>
> I want to override the following function in ChartBase class, but 
it 
> is private. I wonder if there is any other alternative solution.
> 
>  private function mouseClickHandler(event:MouseEvent):void
> 
> Thanks in advance,
> Tung Chau
> 
> --- In [email protected], "tungchau81" <tungchau81@> 
> wrote:
> >
> > Any help out there? I am really stuck on this...
> > 
> > --- In [email protected], "tungchau81" <tungchau81@> 
> > wrote:
> > >
> > > Hi,
> > > When a user **right-click on a wedge in a PieChart or a column 
in 
> a 
> > > ColumnChart control, I need to drill down into the data for 
that 
> > > wedge or column and display new charts based on the selected 
menu 
> > > item on the right-click menu. This should work similar to a 
> normal 
> > > left-click drill down available in Flex Chart using HitData. 
> > > 
> > > I have two problems:
> > > Problem#1:
> > > I know how to create right-click menu using ContextMenu and 
> > > ContextMenuItem. However, I do not know how to make the right-
> click 
> > > menu to show up **if and only if** a user clicks on a wedge of 
a 
> > > PieChart or a column of a ColumnChart, not anywhere else. 
> > > 
> > > Problem#2:
> > > I cannot use the rightClick event available in ColumnChart API 
> > > because the event is only available in AIR runtime. Also, 
> > rightClick 
> > > event is not associated with ChartItemEvent as "itemClick" 
event 
> > does 
> > > and therefore, no hitData is available for me to figure what 
data 
> > was 
> > > underneath the mouse when the right-click event was triggered. 
> > > 
> > > Any help or suggestion is greatly appreciated. Thank you
> > > 
> > > Tung Chau
> > >
> >
>


Reply via email to