Skip to content

Animation onComplete callback #26

Description

@marioconforti

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions