This is my dataset:
x: '2014-01-01', '2014-02-02', '2014-03-02', ...
y: '01:30:00', '00:55:00', '01:45:50', ...
I would like to show this data on my chart, using the c3.js library.
I tried this so far (already converted time to seconds):
var chart = c3.generate({
data : {
x : 'x',
columns : [
['x', '2010-01-01', '2011-01-01', '2012-01-01', '2013-01-01', '2014-01-01', '2015-01-01'],
['sample', 30, 200, 100, 400, 150, 250]
]
},
axis : {
x : {
type: 'timeseries'
},
y : {
tick : {
format: d3.time.format("%X")
//or format: function (d) { return '$' + d; }
}
}
}
});