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 1010
1111var Drawing = require ( '../../components/drawing' ) ;
1212
13- var PTS_LINESONLY = 20 ; // TODO put in constants/
13+ var constants = require ( './constants' ) ;
14+
1415
1516module . exports = {
1617 x : {
@@ -84,7 +85,7 @@ module.exports = {
8485 'If the provided `mode` includes *text* then the `text` elements' ,
8586 'appear at the coordinates. Otherwise, the `text` elements' ,
8687 'appear on hover.' ,
87- 'If there are less than ' + PTS_LINESONLY + ' points,' ,
88+ 'If there are less than ' + constants . PTS_LINESONLY + ' points,' ,
8889 'then the default is *lines+markers*. Otherwise, *lines*.'
8990 ] . join ( ' ' )
9091 } ,
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');
4747 ] . join ( ' ' )
4848} ;
4949
50- // traces with < this many points are by default shown
51- // with points and lines, > just get lines
52- scatter . PTS_LINESONLY = 20 ;
53-
5450scatter . attributes = require ( './attributes' ) ;
5551
5652scatter . cleanData = function ( fullData ) {
You can’t perform that action at this time.
0 commit comments