Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
(error, result) => {
if (result)
vlTooltip(result.view, vls, {});
}
);
type: 'quantitative',
axis: {
labels: !scaledPropertyForY
}
}
},
height: $chartContainer.height() - 30,
autosize: { type: 'fit-y', resize: true, contains: 'padding' }
};
var view = new vega.View(vega.parse(vl.compile(spec).spec))
.renderer('svg')
.initialize($chartContainer[0])
.run();
vegaTooltip.vegaLite(view, spec, {
showAllFields: false,
fields: [{
field: scaledPropertyForY || this.propertyForY
}, {
field: x
}]
});
this.vegaView = view;
return this;
},