[ad_1]
I hav html CSS JS code for some calculations and contains JavaScript link to d3js org /d3 v4
In the WordPress editor the code work properly but when I display the page or publish it the code doesn’t work
Can anyone help me with this issue please

The first step in debugging would probably be to open your browsers javascript console and look for errors. The error messages should hopefully give you a sense of what you need to fix.
Sounds like the theme is breaking the code. Potential conflict or wrong jquery version.
Or you have a plugin that minifies JavaScript code which causes it to break.