PubNub EON 不呈现历史记录
PubNub EON not rendering History
无法弄清楚为什么 EON 样条图在加载时没有加载历史记录(是的,存储和回放功能已启用)。图表将在数据传入时正确呈现数据,并且在控制台中看不到任何错误。关于可能发生的事情的任何线索?
eon.chart({
channel: channel,
history: true,
flow: true,
pubnub: pubnub,
debug: true,
generate: {
bindto: '#chart',
data: {
type: 'spline',
labels: false
}
},
transform: function(m) {
return { eon: {
'temp': m.temp
}}
}
});
这是控制台的输出:
EON-CHART: PubNub: Subscribed to runtimewareiotchannel
eon.js:7657 EON-CHART: Status: Restoring from history
eon.js:7657 EON-CHART: History: Retrieving messages from undefined
eon.js:7657 EON-CHART: Status: Chart Animation Enabled
eon.js:7657 EON-CHART: History: 10 messages found
eon.js:7657 EON-CHART: History: Complete... Rendering
eon.js:7657 EON-CHART: History: Retrieving messages from 14689036992721526
eon.js:7657 EON-CHART: History: 1 messages found
eon.js:7657 EON-CHART: History: Complete... Rendering
发布到PubNub的数据如下-很简单:
{
"temp": 76.662498
}
谢谢!
德里克
这是今天的暂时性问题,应该得到解决。看这个例子:
http://pubnub.github.io/eon-chart/examples/history.html
无法弄清楚为什么 EON 样条图在加载时没有加载历史记录(是的,存储和回放功能已启用)。图表将在数据传入时正确呈现数据,并且在控制台中看不到任何错误。关于可能发生的事情的任何线索?
eon.chart({
channel: channel,
history: true,
flow: true,
pubnub: pubnub,
debug: true,
generate: {
bindto: '#chart',
data: {
type: 'spline',
labels: false
}
},
transform: function(m) {
return { eon: {
'temp': m.temp
}}
}
});
这是控制台的输出:
EON-CHART: PubNub: Subscribed to runtimewareiotchannel eon.js:7657 EON-CHART: Status: Restoring from history eon.js:7657 EON-CHART: History: Retrieving messages from undefined eon.js:7657 EON-CHART: Status: Chart Animation Enabled eon.js:7657 EON-CHART: History: 10 messages found eon.js:7657 EON-CHART: History: Complete... Rendering eon.js:7657 EON-CHART: History: Retrieving messages from 14689036992721526 eon.js:7657 EON-CHART: History: 1 messages found eon.js:7657 EON-CHART: History: Complete... Rendering
发布到PubNub的数据如下-很简单:
{
"temp": 76.662498
}
谢谢! 德里克
这是今天的暂时性问题,应该得到解决。看这个例子: http://pubnub.github.io/eon-chart/examples/history.html