Created
February 23, 2016 06:15
-
-
Save benjaminmbrown/f90ef182b3fa87f24603 to your computer and use it in GitHub Desktop.
connection-onmessage.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
connection.onmessage = function(event) { | |
var newData = JSON.parse(event.data); | |
var updateObject =[{ | |
"Name": newData.Name, | |
"Year": newData.Year, | |
"Spent": newData.Spent, | |
"payType": newData.payType | |
}] | |
//resetData(ndx, [yearDim, spendDim, nameDim]); | |
xfilter.add(updateObject); | |
dc.redrawAll(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment