SHARE
TWEET

Untitled

a guest Jan 18th, 2019 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var message = msg.payload;
  2. var onValues = [];
  3. var offValues = [];
  4.  
  5. message.forEach(function(value) {
  6.  
  7.     if (message.type == 0) {
  8.         onValues.push({
  9.             y: value.count,
  10.             label: value.date
  11.         });
  12.     } else {
  13.         offValues.push({
  14.             y: value.count,
  15.             label: value.date
  16.         });
  17.     }
  18. });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top