You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Name is set by the mark; marks can use whatever names they wnat… I tihnk? used as key in markChannels
// when would name be undefined?
if(name!==undefined){
named[name]=channel.value;
}
// when would channel scale be undefined?
if(channel.scale!==undefined){
constscaled=scaleChannels.get(channel.scale);
// but nothing's ever done with `scaled`? oh i see it mutates the array
// in-place in the scaleChannels Map…
if(scaled)scaled.push(channel);
elsescaleChannels.set(channel.scale,[channel]);
}
}
markChannels.set(mark,named);
markIndex.set(mark,index);
}
constscaleDescriptors=Scales(scaleChannels,options);// objects describing configuration of scales, and the fns themselves
constscales=ScaleFunctions(scaleDescriptors);// shortcut from descriptors to the d3 scales themselves, the functions you call like the `x` in `x(d.date)`
constaxes=Axes(scaleDescriptors,options);// objects describing configuration of axes
constdimensions=Dimensions(scaleDescriptors,axes,options);// object of height/width/margin values in pixels
// When faceting, layout fx and fy instead of x and y.
// TODO cleaner
if(facet!==undefined){
constx=scales.fx ? "fx" : "x";// at least one of these (scales.fx or scales.fy)
consty=scales.fy ? "fy" : "y";// will be truthy, since facet !== undefined. right?