【发布时间】:2015-10-14 02:24:09
【问题描述】:
如何在 c3.js 时间序列图表(如堆积面积图)下方填充,但 x 轴剩余时间序列的值。我正在使用 PUBNUB 的 EON 图表库,但它使用 c3.js 作为基础库。
eon.chart({
pubnub : pubnub,
history : false,
channel : 'orbit2',
flow : true,
generate : {
bindto : '#chart',
size: {
height: 240,
width: 380
},
data : {
x : 'x',
labels : true
},
axis : {
x : {
type : 'timeseries',
tick : {
format : '%H:%M:%S'
},
zoom: {
enabled: true
}
}
}
},
transform : function(m) {
return { columns : [
['x', new Date().getTime()],
['Bytes Written', m.Bytes_Written],
['Bytes Read', m.Bytes_Read]
] };
}
});
【问题讨论】:
标签: javascript charts pubnub c3.js