c3js / c3js/c3

C3 stacked bar chart order function is not working in safari and IE.

Open
#2,219 0 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

Order function , when returns true,order of data in bar does not change in safari.
here is a demo: https://jsfiddle.net/shru8051/wp520y8j/

var chart = c3.generate({
data: {
columns: [
['MONETARY', 11340, 3259],
['NON-MONETARY', 12335, 18041]
],
type: 'bar',
groups: [
['MONETARY','NON-MONETARY']
],
order:function(t1,t2){return true}, // not working in safari
},

axis: {
x: {
type: 'category',
categories: ['DENTIST', 'PROGRAMMER/ANALYST']
}
}
});

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.