Why plot triggers do not work? [message #368305] |
Tue, 19 May 2009 18:08 |
Eclipse User |
|
|
|
Originally posted by: elaskavaia.qnx.com
I am trying to add zooming to chart. For that I need mouse-down,
mouse-move, etc
events from Plot block. If I add trigger for plot it does not work at
all...
For example I can modify InteractivityCharts from example adding the
following
at line 478:
cwaBar.getPlot().getTriggers( )
.add( TriggerImpl.create( TriggerCondition.ONMOUSEDOWN_LITERAL,
ActionImpl.create( ActionType.CALL_BACK_LITERAL,
CallBackValueImpl.create( "plot" ) ) ) );
Callback is called on series but not anywhere in the plot area between the
bars :(
|
|
|
|
Re: Why plot triggers do not work? [message #368318 is a reply to message #368308] |
Wed, 20 May 2009 17:41 |
Eclipse User |
|
|
|
Originally posted by: jasonweathersby.alltel.net
Alena,
You can do a somewhat of a hack (BTW I am working on a zoom example as
well) to add the onmousedown/onmousemove event.
Add a script to a text element before or after the chart.
<script>
function chartclick(evt){
document.onmousemove = onmousemovefunc;
document.onmousedown = onmousedownfunc;
}
function onmousemove(evt){
.....
}
</script>
You will have to preview in HTML or the webviewer to get valid values
for evt though.
Also SVG supports mousemove, down etc. The image types do not. The
above hack is for image types.
Jason
Alena Laskavaia wrote:
> Ok as I can see it is not implemented.. Only stuff is implemented is
> series items, legend items and title area :(
>
|
|
|
Powered by
FUDForum. Page generated in 0.02789 seconds