Skip to content

Instantly share code, notes, and snippets.

@biovisualize
Created February 16, 2017 04:13
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/c81e780206e6f8a213cd2ddc7a33fa2c to your computer and use it in GitHub Desktop.
Save biovisualize/c81e780206e6f8a213cd2ddc7a33fa2c to your computer and use it in GitHub Desktop.
Minimal module example
var scaleX = function(config) {
var scaleX = d3.scaleBand()
.domain(config.data.labels)
.rangeRound([0, config.width])
.paddingInner(0.4)
.paddingOuter(0.2)
return {
scaleX: scaleX
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment