Closed aendra-rininsland closed 6 years ago
Currently the .plotdim() method is a shortcut for returning the window.plotdim global. The window global variable is unavailable in NodeJS and other contexts, meaning bundling charts into other tooling is currently impossible.
.plotdim()
window.plotdim
window
I've fixed this in financial-times/vv by using Webpack's ProvidePlugin and setting window.plotDim to []. Thus no upstream change is required.
window.plotDim
[]
Currently the
.plotdim()
method is a shortcut for returning thewindow.plotdim
global. Thewindow
global variable is unavailable in NodeJS and other contexts, meaning bundling charts into other tooling is currently impossible.