data order does not sort correctly when x axis is category type
- Dominant language
- JavaScript
- Stars
- 9.3k
- Forks
- 1.4k
- Avg merge
- 6d 16h
- Merged PRs (30d)
- 1
Description
* **C3 version**: 0.6.12
* **D3 version**: 5.7.0
* **Browser**: Chrome
* **OS**: Linux CentOS 7
Example, data2 should be on top of tooltip for the last bar but it is not.
To replicate, replace code in https://c3js.org/samples/data_order.html with the code below
```
var chart = c3.generate({
data: {
x: 'x',
columns: [
['x', 'data1', 'data2', 'data3'],
['data1', 130, 200, 320],
['data2', -130, 10, 430],
['data3', -130, -50, -10]
],
type: 'bar',
groups: [
['data1', 'data2', 'data3']
],
order: 'desc' // stack order by sum of values descendantly. this is default.
},
axis: {
x: {
type: 'category'
}
}
});
```
Contributor guide
Assessment
This issue has not been assessed yet.