0
無法確定EON樣條曲線圖在加載時未加載歷史記錄的原因(是,存儲和播放功能已啓用)。圖表將在數據進入時正確呈現數據,控制檯中不會顯示任何錯誤。任何線索可能會發生什麼?PubNub EON not rendering歷史記錄
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
}}
}
});
這裏是從控制檯輸出:發佈到PubNub
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
的數據如下 - 很簡單:
{
"temp": 76.662498
}
謝謝! Derek
PubNub engineering的某個人很快就會對此進行審查。 –