How do I get rid off EventEmitter memory leak error?

I am trying to build a boxplot visualization using plotly js library and I have successfully built that already but sometimes the boxplots are not getting plotted and giving below error:
" MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 plotly_afterplot listeners added. Use emitter.setMaxListeners() to increase limit
** at f (http://localhost:8006/CustomView/DUs0GUoPbE6DPodm1--IH/NoDocumentViewId/ee442cfc-98b5-42e4-8e0b-f3cc2e7040c1/:9735:19558)**
** at s.addListener (http://localhost:8006/CustomView/DUs0GUoPbE6DPodm1--IH/NoDocumentViewId/ee442cfc-98b5-42e4-8e0b-f3cc2e7040c1/:9735:21840)**
** at r.manageCommandObserver (http://localhost:8006/CustomView/DUs0GUoPbE6DPodm1--IH/NoDocumentViewId/ee442cfc-98b5-42e4-8e0b-f3cc2e7040c1/:9759:941699)**
** at SVGGElement. (http://localhost:8006/CustomView/DUs0GUoPbE6DPodm1--IH/NoDocumentViewId/ee442cfc-98b5-42e4-8e0b-f3cc2e7040c1/:9759:629872)**"