@@ -5,10 +5,7 @@ var colorAttrs = require('../../components/color/attributes');
5
5
var dash = require ( '../../components/drawing/attributes' ) . dash ;
6
6
var extendFlat = require ( '../../lib/extend' ) . extendFlat ;
7
7
var templatedArray = require ( '../../plot_api/plot_template' ) . templatedArray ;
8
-
9
- var docs = require ( '../../constants/docs' ) ;
10
- var FORMAT_LINK = docs . FORMAT_LINK ;
11
- var DATE_FORMAT_LINK = docs . DATE_FORMAT_LINK ;
8
+ var descriptionWithDates = require ( '../../plots/cartesian/axis_format_attributes' ) . descriptionWithDates ;
12
9
13
10
var ONEDAY = require ( '../../constants/numerical' ) . ONEDAY ;
14
11
var constants = require ( './constants' ) ;
@@ -702,16 +699,7 @@ module.exports = {
702
699
valType : 'string' ,
703
700
dflt : '' ,
704
701
editType : 'ticks' ,
705
- description : [
706
- 'Sets the tick label formatting rule using d3 formatting mini-languages' ,
707
- 'which are very similar to those in Python. For numbers, see:' ,
708
- FORMAT_LINK ,
709
- 'And for dates see:' ,
710
- DATE_FORMAT_LINK ,
711
- 'We add one item to d3\'s date formatter: *%{n}f* for fractional seconds' ,
712
- 'with n digits. For example, *2016-10-13 09:15:23.456* with tickformat' ,
713
- '*%H~%M~%S.%2f* would display *09~15~23.46*'
714
- ] . join ( ' ' )
702
+ description : descriptionWithDates ( 'tick label' )
715
703
} ,
716
704
tickformatstops : templatedArray ( 'tickformatstop' , {
717
705
enabled : {
@@ -750,16 +738,7 @@ module.exports = {
750
738
valType : 'string' ,
751
739
dflt : '' ,
752
740
editType : 'none' ,
753
- description : [
754
- 'Sets the hover text formatting rule using d3 formatting mini-languages' ,
755
- 'which are very similar to those in Python. For numbers, see:' ,
756
- FORMAT_LINK ,
757
- 'And for dates see:' ,
758
- DATE_FORMAT_LINK ,
759
- 'We add one item to d3\'s date formatter: *%{n}f* for fractional seconds' ,
760
- 'with n digits. For example, *2016-10-13 09:15:23.456* with tickformat' ,
761
- '*%H~%M~%S.%2f* would display *09~15~23.46*'
762
- ] . join ( ' ' )
741
+ description : descriptionWithDates ( 'hover text' )
763
742
} ,
764
743
// lines and grids
765
744
showline : {
0 commit comments