Use yarn install of npm

This commit is contained in:
Tyler Long
2017-04-13 22:21:09 +08:00
parent df8085bee0
commit 15bdaca2f9
5 changed files with 21 additions and 56 deletions

View File

@@ -109,7 +109,7 @@ module.exports.draw = function (text, id) {
drawToday(leftPadding, topPadding, pageWidth, pageHeight)
}
function drawRects (theArray, theGap, theTopPad, theSidePad, theBarHeight, theColorScale, w, h) { // eslint-disable-line no-unused-vars
function drawRects (theArray, theGap, theTopPad, theSidePad, theBarHeight, theColorScale, w, h) {
svg.append('g')
.selectAll('rect')
.data(theArray)
@@ -123,7 +123,7 @@ module.exports.draw = function (text, id) {
return w - conf.rightPadding / 2
})
.attr('height', theGap)
.attr('class', function (d) { // eslint-disable-line no-unused-vars
.attr('class', function (d) {
for (var i = 0; i < categories.length; i++) {
if (d.type === categories[i]) {
return 'section section' + (i % conf.numberSectionStyles)