Skip to content

Commit 1e42bb4

Browse files
committed
Dash marker symbol
1 parent 5052028 commit 1e42bb4

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"gulp-uglify": "^1.0.1",
3737
"gulp-util": "^3.0.1",
3838
"imports-loader": "^0.6.3",
39-
"jsdom": "^1.3.1",
39+
"jsdom": "^9.9.1",
4040
"jshint-stylish": "^0.4.0",
4141
"karma": "^0.12.23",
4242
"karma-chrome-launcher": "^0.1.4",

src/scripts/timeSeriesPlot.es6.js

+6
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,12 @@ nv.utils.symbolMap.set('x', function(specifiedSize) {
7373
'l' + (-size) + ',' + size;
7474
});
7575

76+
nv.utils.symbolMap.set('dash', function(specifiedSize) {
77+
var size = Math.sqrt(specifiedSize) * 1.8;
78+
return 'M' + (-size/2) + ',' + 0 +
79+
'l' + size + ',' + 0;
80+
});
81+
7682
nv.utils.symbolMap.set('plus', function(specifiedSize) {
7783
var size = Math.sqrt(specifiedSize) * 1.8;
7884
return 'M0,0' +

0 commit comments

Comments
 (0)