We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
i make a timeline chart with stacked bar. but, it not works very well.
var chart = c3.generate({ data: { x : 'x', columns: [ ['x', 'task1', 'task2', 'task3'], ['Starts', new Date('2010-03-01'), new Date('2009-05-15'), new Date('1995-03-21 16:00')], ['Durations', 50000000000, new Date('2010-03-01')-new Date('2009-05-15'), 15000000000 ], ], type: 'bar', groups: [['Starts','Durations']], order: null, colors: { Starts: '#f0f0f0', } }, axis: { rotated: true, x : { type: 'category', }, y: { type: 'timeseries', tick: { rotate: 75, format : function(y) { var s = '%y/%m/%d'.replace( '%y', y.getFullYear()).replace( '%m', y.getMonth()+1 ).replace( '%d', y.getDate() ); return s; } } } }, zoom: { enabled: true, rescale: true } });
The text was updated successfully, but these errors were encountered:
No branches or pull requests
i make a timeline chart with stacked bar.
but, it not works very well.
demand some improvement. try it !
var chart = c3.generate({
data: {
x : 'x',
columns: [
['x', 'task1', 'task2', 'task3'],
['Starts', new Date('2010-03-01'), new Date('2009-05-15'), new Date('1995-03-21 16:00')],
['Durations', 50000000000, new Date('2010-03-01')-new Date('2009-05-15'), 15000000000 ],
],
type: 'bar',
groups: [['Starts','Durations']],
order: null,
colors: {
Starts: '#f0f0f0',
}
},
axis: {
rotated: true,
x : {
type: 'category',
},
y: {
type: 'timeseries',
tick: {
rotate: 75,
format : function(y) { var s = '%y/%m/%d'.replace( '%y', y.getFullYear()).replace( '%m', y.getMonth()+1 ).replace( '%d', y.getDate() ); return s; }
}
}
},
zoom: {
enabled: true,
rescale: true
}
});
The text was updated successfully, but these errors were encountered: