plotly.js
Version:
The open source javascript graphing library that powers plotly
43 lines (37 loc) • 924 B
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.
*/
;
var parcats = require('./parcats');
/**
* Create / update parcat traces
*
* @param {Object} graphDiv
* @param {Array.<ParcatsModel>} parcatsModels
*/
module.exports = function plot(graphDiv, parcatsModels, transitionOpts, makeOnCompleteCallback) {
var fullLayout = graphDiv._fullLayout;
var svg = fullLayout._paper;
var size = fullLayout._size;
parcats(
graphDiv,
svg,
parcatsModels,
{
width: size.w,
height: size.h,
margin: {
t: size.t,
r: size.r,
b: size.b,
l: size.l
}
},
transitionOpts,
makeOnCompleteCallback
);
};