MCPcopy Index your code
hub / github.com/plotly/plotly.js / fillMetaTextHelpers

Function fillMetaTextHelpers

src/plots/plots.js:725–755  ·  view source on GitHub ↗
(newFullData, newFullLayout)

Source from the content-addressed store, hash-verified

723}
724
725function fillMetaTextHelpers(newFullData, newFullLayout) {
726 var _meta;
727 var meta4data = [];
728
729 if(newFullLayout.meta) {
730 _meta = newFullLayout._meta = {
731 meta: newFullLayout.meta,
732 layout: {meta: newFullLayout.meta}
733 };
734 }
735
736 for(var i = 0; i < newFullData.length; i++) {
737 var trace = newFullData[i];
738
739 if(trace.meta) {
740 meta4data[trace.index] = trace._meta = {meta: trace.meta};
741 } else if(newFullLayout.meta) {
742 trace._meta = {meta: newFullLayout.meta};
743 }
744 if(newFullLayout.meta) {
745 trace._meta.layout = {meta: newFullLayout.meta};
746 }
747 }
748
749 if(meta4data.length) {
750 if(!_meta) {
751 _meta = newFullLayout._meta = {};
752 }
753 _meta.data = meta4data;
754 }
755}
756
757// Create storage for all of the data related to frames and transitions:
758plots.createTransitionData = function(gd) {

Callers 1

plots.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…