Created
February 16, 2017 04:13
-
-
Save biovisualize/c81e780206e6f8a213cd2ddc7a33fa2c to your computer and use it in GitHub Desktop.
Minimal module example
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
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