c3js / c3js/c3

Subchart selector does not work with selection < tick

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

Description

* **C3 version**: 0.4.22 (at least)
* **D3 version**: 3.5.6
* **Browser**: Firefox 59
* **OS**: Linux

When we select a period between 2 ticks in the subchart, nothing appears on the main chart.

![screenshot-2018-3-24 kresus](https://user-images.githubusercontent.com/3419050/37863090-75fe9926-2f58-11e8-88c1-87aa276937f4.png)

See a more simple example https://codepen.io/anon/pen/aYyVLv with code below:

```js

var chart = c3.generate({
data: {
x: 'x',

type: 'bar',

columns: [
['x', '2013-01-01', '2013-01-02', '2013-01-03', '2013-01-04', '2013-01-05', '2013-01-06'],
['data1', 30, 200, 100, 400, 150, 250],
['data2', 130, 340, 200, 500, 250, 350]
]
},
axis: {
x: {
type: 'timeseries',
tick: {
format: '%Y-%m-%d'
}
}
},
subchart: {
show: true
}
});
```

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.