plotly.js
Version:
The open source javascript graphing library that powers plotly
15 lines (9 loc) • 390 B
JavaScript
var Axes = require('../../plots/cartesian/axes');
module.exports = function formatLabels(cdi, trace, fullLayout) {
var labels = {};
var subplot = fullLayout[trace.subplot]._subplot;
labels.realLabel = Axes.tickText(subplot.radialAxis, cdi.real, true).text;
labels.imagLabel = Axes.tickText(subplot.angularAxis, cdi.imag, true).text;
return labels;
};
;