c3js / c3js/c3

Select a vertical area on a chart

Open
#2,147 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
9.3k
Forks
1.4k
Avg merge
6d 16h
Merged PRs (30d)
1

Description

I created the following feature using C3 & jQuery:
http://jsfiddle.net/prqwrjtq/2/

You can select an area on the chart. I would like to implement this ability as C3 API. It would accept a callback with start and end points as arguments, so a user can select an area on the chart between two data points and get a response to their selection.

e.g
```
c3.generate({
...
areaselect: {
enabled: true,
onselect: function(a, b) {
// do something with data points here
},
color: #999999 // selector color
}
})
```

How would one go about this?

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.