@@ -5,10 +5,7 @@ var colorAttrs = require('../../components/color/attributes');
55var dash = require ( '../../components/drawing/attributes' ) . dash ;
66var extendFlat = require ( '../../lib/extend' ) . extendFlat ;
77var 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 ;
129
1310var ONEDAY = require ( '../../constants/numerical' ) . ONEDAY ;
1411var constants = require ( './constants' ) ;
@@ -702,16 +699,7 @@ module.exports = {
702699 valType : 'string' ,
703700 dflt : '' ,
704701 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' )
715703 } ,
716704 tickformatstops : templatedArray ( 'tickformatstop' , {
717705 enabled : {
@@ -750,16 +738,7 @@ module.exports = {
750738 valType : 'string' ,
751739 dflt : '' ,
752740 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' )
763742 } ,
764743 // lines and grids
765744 showline : {
0 commit comments