0

Unable to figure out why the EON spline chart is not loading history upon load (Yes, the Storage and Playback features are enabled) . The chart will render data properly as data comes in and no errors are visible in the console. Any clues as to what may be going on?

  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
        }}
      }
  });

And here is the output from the console:

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

The data posted to PubNub is as follows - very simple:

{
  "temp": 76.662498
}

Thanks! Derek

Derek
  • 33
  • 4

1 Answers1

1

This was a temporary issue today and should be resolved. See this example: http://pubnub.github.io/eon-chart/examples/history.html

Ian Jennings
  • 2,219
  • 1
  • 14
  • 10