c3 - Pubnub EON chart rendering multiple data in the chart -
i following follwoing example publish data using pubnub , eon charts. when publish 1 data stream i.e 'checkpointsize' chart renders fine minute enter data2 i.e 'checkpointlength' gives me error
uncaught error: source data missing component @ (1,1)!
i can see data in pubnub console, means getting data stream cannot rendered chart.
var pubnub = pubnub({ subscribe_key : 'your_subscribe_key_here' }); eon.chart({ pubnub : pubnub, history : false, channel : 'orbit_channel', flow : true, generate : { bindto : '#chart', 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()], ['checkpoint size', m.checkpointsize], ['checkpoint length', m.checkpointlength] ] }; } });
here pubnub console
combine 2 data streams 1 chart pubnub eon
looks trying plot 2 vectors on same graph. possible transmitting values @ same time in same published message object. think publishing twice in example. publish message needs contain both data points. here example
pubnub.publish({ "checkpointsize" : 75.0, "checkpointlength" : 5000.0 })
Comments
Post a Comment