I'm trying to use an animation onComplete js function, in this way:
Animation<?> animation = new Animation<>();
JavaScriptFunction js = new JavaScriptFunction("function(){alert(chart.toBase64Image())}");
animation.setOnComplete(js);
options.setAnimation(animation);
this is rendered in this way inside options
"animation" : {
"onComplete" : function(){console.log(chart.toBase64Image())}
},
but the graph is not rendered at all, and i have no logs to see what's going on.
If i put off the option, the graph is rendered correctly.
I'm trying to use an animation onComplete js function, in this way:
this is rendered in this way inside options
but the graph is not rendered at all, and i have no logs to see what's going on.
If i put off the option, the graph is rendered correctly.