Skip to content

Instantly share code, notes, and snippets.

@biovisualize
Created December 14, 2018 15:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save biovisualize/720f4399e5d292eb541abbe5e0001dc5 to your computer and use it in GitHub Desktop.
Save biovisualize/720f4399e5d292eb541abbe5e0001dc5 to your computer and use it in GitHub Desktop.
Think API first
const ChartManager = function() {
function init() { }
function config() { }
function setData() { }
function render() { }
return {
init,
config,
setData,
render
}
}
const DataManager = function() {
function getData() { }
function getFilteredData() { }
return {
getData,
getFilteredData
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment