Using UIBUILDER with Plotly

In case you were not already aware...

I've looked again today at fine tuning UIbuilder PWA cache's, during which, noticed that even the minimised version of plotly.js is over 4MB in size, and by far the largest library that I am loading.

However, Plotly have also npm published 'Partial Bundles' which are targeted Plotly libraries, and therefore much smaller sizes and which of course load faster.

By example, I'm only displaying line charts, so I selected plotly.js-basic-dist-min which includes; bar, pie, scatter as well as line charts, and weighs in at 1MB, which is a saving of 75% compared to plotly.min.js.

1 Like