Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 219bfee

Browse files
committed
mention log and date info on shapes.yref similar to xref
1 parent b194d8c commit 219bfee

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/components/shapes/attributes.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,10 @@ module.exports = templatedArray('shape', {
109109
description: [
110110
'Sets the annotation\'s y coordinate axis.',
111111
axisPlaceableObjs.axisRefDescription('y', 'bottom', 'top'),
112+
'If the axis `type` is *log*, then you must take the',
113+
'log of your desired range.',
114+
'If the axis `type` is *date*, then you must convert',
115+
'the date to unix time in milliseconds.'
112116
].join(' ')
113117
}),
114118
ysizemode: {

test/plot-schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7009,7 +7009,7 @@
70097009
"valType": "any"
70107010
},
70117011
"yref": {
7012-
"description": "Sets the annotation's y coordinate axis. If set to a y axis id (e.g. *y* or *y2*), the `y` position refers to a y coordinate. If set to *paper*, the `y` position refers to the distance from the bottom of the plotting area in normalized coordinates where *0* (*1*) corresponds to the bottom (top). If set to a y axis ID followed by *domain* (separated by a space), the position behaves like for *paper*, but refers to the distance in fractions of the domain length from the bottom of the domain of that axis: e.g., *y2 domain* refers to the domain of the second y axis and a y position of 0.5 refers to the point between the bottom and the top of the domain of the second y axis.",
7012+
"description": "Sets the annotation's y coordinate axis. If set to a y axis id (e.g. *y* or *y2*), the `y` position refers to a y coordinate. If set to *paper*, the `y` position refers to the distance from the bottom of the plotting area in normalized coordinates where *0* (*1*) corresponds to the bottom (top). If set to a y axis ID followed by *domain* (separated by a space), the position behaves like for *paper*, but refers to the distance in fractions of the domain length from the bottom of the domain of that axis: e.g., *y2 domain* refers to the domain of the second y axis and a y position of 0.5 refers to the point between the bottom and the top of the domain of the second y axis. 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.",
70137013
"editType": "calc",
70147014
"valType": "enumerated",
70157015
"values": [

0 commit comments

Comments
 (0)