c3js / c3js/c3

Emit events in place of callbacks

Open
#1,479 0 comments 1 reaction 0 assignees View on GitHub
C-feature-request
Dominant language
JavaScript
Stars
9.3k
Forks
1.4k
Avg merge
6d 16h
Merged PRs (30d)
1

Description

Currently all events are handled via callbacks. These work fine generally, but the fact these events aren't actually emitted means you can't do things like:

``` js
chart.on('rendered', function(){ someFunction(); this.off(); })
```

Which would be useful if you want to run a function once upon initial render.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.