Skip to content

Instantly share code, notes, and snippets.

@benjaminmbrown
Created February 23, 2016 06:15
Show Gist options
  • Save benjaminmbrown/f90ef182b3fa87f24603 to your computer and use it in GitHub Desktop.
Save benjaminmbrown/f90ef182b3fa87f24603 to your computer and use it in GitHub Desktop.
connection-onmessage.js
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