plotly.js
Version:
The open source javascript graphing library that powers plotly
31 lines (27 loc) • 1.33 kB
JavaScript
/**
* Copyright 2012-2020, Plotly, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
;
module.exports = {
axisRefDescription: function(axisname, lower, upper) {
return [
'If set to a', axisname, 'axis id (e.g. *' + axisname + '* or',
'*' + axisname + '2*), the `' + axisname + '` position refers to a',
axisname, 'coordinate. If set to *paper*, the `' + axisname + '`',
'position refers to the distance from the', lower, 'of the plotting',
'area in normalized coordinates where *0* (*1*) corresponds to the',
lower, '(' + upper + '). If set to a', axisname, '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', lower, 'of the domain of that axis: e.g.,',
'*' + axisname + '2 domain* refers to the domain of the second',
axisname, ' axis and a', axisname, 'position of 0.5 refers to the',
'point between the', lower, 'and the', upper, 'of the domain of the',
'second', axisname, 'axis.',
].join(' ');
}
};