Yet only empty space is displayed and no figure can be seen both in my local and the netlify upload. Is it possible that some hugo config is blocking the display?
Include a link to the source code repository of your project, because we really need the context of seeing your templates and partials to be able to help you. It is trivial to do a quick git clone on your repo, then run hugo server in your project, to help you out. On the other hand, recreating your code from screenshots, or sort of guessing at it, is not.
If you can’t share your repository for whatever reason, consider creating a dummy repo that you can share, which reproduces the problem you’re experiencing.
The article you referenced is no longer valid. The Plotly.d3 object was dropped in v2.0.
There are many ways to include a Plotly graph on a page. Your implementation will depend on:
How the graph is defined
JavaScript?
Serialized data (JSON, YAML, TOML)?
Where the graph definition is located
On the content page, between opening and closing shortcode tags?
As separate files?
Page resources?
Global resources (local or remote)?
In the static directory?
As objects in the data directory?
Give this a try. The graphs are defined with JSON files located in the data directory.
git clone --single-branch -b hugo-forum-topic-38221 https://github.com/jmooring/hugo-testing hugo-forum-topic-38221
cd hugo-forum-topic-38221
hugo server