File tree Expand file tree Collapse file tree 3 files changed +17
-6
lines changed Expand file tree Collapse file tree 3 files changed +17
-6
lines changed Original file line number Diff line number Diff line change 10
10
11
11
var Drawing = require ( '../../components/drawing' ) ;
12
12
13
- var PTS_LINESONLY = 20 ; // TODO put in constants/
13
+ var constants = require ( './constants' ) ;
14
+
14
15
15
16
module . exports = {
16
17
x : {
@@ -84,7 +85,7 @@ module.exports = {
84
85
'If the provided `mode` includes *text* then the `text` elements' ,
85
86
'appear at the coordinates. Otherwise, the `text` elements' ,
86
87
'appear on hover.' ,
87
- 'If there are less than ' + PTS_LINESONLY + ' points,' ,
88
+ 'If there are less than ' + constants . PTS_LINESONLY + ' points,' ,
88
89
'then the default is *lines+markers*. Otherwise, *lines*.'
89
90
] . join ( ' ' )
90
91
} ,
Original file line number Diff line number Diff line change
1
+ /**
2
+ * Copyright 2012-2016, Plotly, Inc.
3
+ * All rights reserved.
4
+ *
5
+ * This source code is licensed under the MIT license found in the
6
+ * LICENSE file in the root directory of this source tree.
7
+ */
8
+
9
+
10
+ 'use strict' ;
11
+
12
+ module . exports = {
13
+ PTS_LINESONLY : 20
14
+ } ;
Original file line number Diff line number Diff line change @@ -47,10 +47,6 @@ Scatter.supplyDefaults = require('./defaults');
47
47
] . join ( ' ' )
48
48
} ;
49
49
50
- // traces with < this many points are by default shown
51
- // with points and lines, > just get lines
52
- scatter . PTS_LINESONLY = 20 ;
53
-
54
50
scatter . attributes = require ( './attributes' ) ;
55
51
56
52
scatter . cleanData = function ( fullData ) {
You can’t perform that action at this time.
0 commit comments