Skip to content

Instantly share code, notes, and snippets.

@grachevko
Created August 27, 2015 20:30
Show Gist options
  • Save grachevko/05f6958f587c04385773 to your computer and use it in GitHub Desktop.
Save grachevko/05f6958f587c04385773 to your computer and use it in GitHub Desktop.
var chart = c3.generate({
data: {
columns: [
['data3', 19, 17, 10, 15, 12, 11],
['data1', 11, 15, 14, 13, 17, 17],
['data2', 17, 12, 18, 13, 15, 23],
['data4', 14, 11, 19, 18, 12, 15]
],
type: 'bar',
groups: [
['data1', 'data3','data2', 'data4']
]
},
axis: {
x: {
type: 'category',
categories: ['Жуков', 'Сталин', 'Рокоссовский', 'Ерёменко', 'Кожедуб', 'Колобанов']
}
},
grid: {
y: {
lines: [{value:0}]
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment