Skip to content

Commit 600a313

Browse files
committed
Remove defaults and fix CI
1 parent b3773b4 commit 600a313

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

samples/scales/gridlines-scriptable.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,14 @@
4848
gridLines: {
4949
drawBorder: false,
5050
color: function(context) {
51-
if (context.tick.value > 0) {
52-
return window.chartColors.green;
53-
} else if (context.tick.value < 0) {
54-
return window.chartColors.red;
55-
}
51+
if (context.tick.value > 0) {
52+
return window.chartColors.green;
53+
} else if (context.tick.value < 0) {
54+
return window.chartColors.red;
55+
}
5656

57-
return '#000000';
58-
},
57+
return '#000000';
58+
},
5959
},
6060
}]
6161
}

src/core/core.scale.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1017,10 +1017,10 @@ var Scale = Element.extend({
10171017
tick,
10181018
};
10191019

1020-
lineWidth = resolve([gridLines.lineWidth, 1], context, i);
1021-
lineColor = resolve([gridLines.color, 'rgba(0,0,0,0.1)'], context, i);
1020+
lineWidth = resolve([gridLines.lineWidth], context, i);
1021+
lineColor = resolve([gridLines.color], context, i);
10221022
borderDash = gridLines.borderDash || [];
1023-
borderDashOffset = resolve([gridLines.borderDashOffset, 0], context, i);
1023+
borderDashOffset = resolve([gridLines.borderDashOffset], context, i);
10241024

10251025
lineValue = getPixelForGridLine(me, tick._index || i, offsetGridLines);
10261026

0 commit comments

Comments
 (0)