How to prevent Flexmonster to lazy load D3.

Answered
Maxime Flamant asked on April 26, 2018

First, let me say that your product is great and that I've had a very good experience with it so far.

Our AngularJS application uses D3 along with NVD3 to display custom charts.
NVD3 extends the prototype of D3 with some custom functions, the problem is that once flexmonster is instantiated it seems to reload D3 which overrides its prototype.

Is there a way in which we can prevent the lazy loading and use the existing D3 (3.5.17)?
Thank you.

2 answers

Public
Tanya Gryshko Tanya Gryshko Flexmonster April 27, 2018

Hello, Maxime,
Thank you for your interest in Flexmonster Pivot!
We can suggest you the following workaround:
In your flexmonster/lib/ folder find d3.min.js file and make its content empty. This way you will be able to prevent overriding of D3 library.
Does it help in your case?
Regards,
Tanya

Public
Maxime Flamant April 30, 2018

Thank you Tanya, that did the trick.

Please login or Register to Submit Answer