c3js / c3js/c3

draggable not working

Open
#1,710 3 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 recently started using c3 and loving it so far. I have a basic line chart and want to have the points draggable. So according to the docs, I added `selection: { draggable: true }` in my data as follows:

```
var chart = c3.generate({
bindto: '#chart-' + this.toolId,
data: {
columns: [column1, column2],
selection: { draggable: true }
}
});
```

but nothing changed. I also tried setting the option in one of the examples on c3 website. It's not working there as well. Am I missing something here? Any help is really appreciated. Thanks.

The functionality I want is to be able to drag the data points and the line adjusts itself accordingly. For example, http://bl.ocks.org/stepheneb/1182434

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.