From 2744e5e4dfd643ee2bba6b14a2d159bef9288611 Mon Sep 17 00:00:00 2001 From: Mike Anderson Date: Wed, 4 May 2016 11:14:52 -0700 Subject: [PATCH 1/2] Copy over information about x-axis data type to shape attributes --- src/components/shapes/attributes.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/components/shapes/attributes.js b/src/components/shapes/attributes.js index 39ba21ba3a1..61bdc74d945 100644 --- a/src/components/shapes/attributes.js +++ b/src/components/shapes/attributes.js @@ -34,7 +34,7 @@ module.exports = { 'If *rect*, a rectangle is drawn linking', '(`x0`,`y0`), (`x1`,`y0`), (`x1`,`y1`), (`x0`,`y1`), (`x0`,`y0`)', - 'If *path*, draw a custom SVG path using `path`.' + 'If *path*, draw a custom SVG path using `path`.', ].join(' ') }, @@ -53,7 +53,11 @@ module.exports = { 'refers to an x coordinate', 'If set to *paper*, the `x` position refers to the distance from', 'the left side of the plotting area in normalized coordinates', - 'where *0* (*1*) corresponds to the left (right) side.' + 'where *0* (*1*) corresponds to the left (right) side.', + 'If the axis `type` is *log*, then you must take the', + 'log of your desired range.', + 'If the axis `type` is *date*, then you must convert', + 'the date to unix time in milliseconds.' ].join(' ') }), x0: { From d7a501d0f27999c71a5aa9ad633d8c937a6d4a2b Mon Sep 17 00:00:00 2001 From: Mike Anderson Date: Wed, 4 May 2016 11:16:15 -0700 Subject: [PATCH 2/2] remove trailing comma --- src/components/shapes/attributes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/shapes/attributes.js b/src/components/shapes/attributes.js index 61bdc74d945..f90a218a4a4 100644 --- a/src/components/shapes/attributes.js +++ b/src/components/shapes/attributes.js @@ -34,7 +34,7 @@ module.exports = { 'If *rect*, a rectangle is drawn linking', '(`x0`,`y0`), (`x1`,`y0`), (`x1`,`y1`), (`x0`,`y1`), (`x0`,`y0`)', - 'If *path*, draw a custom SVG path using `path`.', + 'If *path*, draw a custom SVG path using `path`.' ].join(' ') },