Javascript 未从plotly中找到d3

Javascript 未从plotly中找到d3,javascript,d3.js,plotly,Javascript,D3.js,Plotly,我正试图用plotly创建我的第一张图表。这是django应用程序的一部分。在我的模板中,我有以下内容: <script type="text/javascript" src="/static/scripts/heatmap.js"></script> <script type="text/javascript" src="/static/scripts/plotly/plotly.min.js"></script> <script type

我正试图用plotly创建我的第一张图表。这是django应用程序的一部分。在我的模板中,我有以下内容:

<script type="text/javascript" src="/static/scripts/heatmap.js"></script>
<script type="text/javascript" src="/static/scripts/plotly/plotly.min.js"></script>
<script type="text/javascript" src="/static/scripts/plotly/dependencies/d3.v3.min.js"></script>
我在js控制台中看到:

plotly.min.js:12 Uncaught ReferenceError: d3 is not defined
n.23../isnumeric @ plotly.min.js:12a @ plotly.min.js:6(anonymous function) @ plotly.min.js:6n.28.../../../../shelly/static/js/plugins/promise-1.0.0.min.js @ plotly.min.js:14a @ plotly.min.js:6t @ plotly.min.js:6(anonymous function) @ plotly.min.js:6(anonymous function) @ plotly.min.js:6(anonymous function) @ plotly.min.js:6
但我可以看到d3已经在网络选项卡和控制台中加载:

d3
Object {version: "3.3.5", behavior: Object, event: null, ns: Object, geo: Object…}

我做错了什么蠢事?

您必须更改包含的文件的顺序

<script type="text/javascript" src="/static/scripts/plotly/dependencies/d3.v3.min.js"></script>
<script type="text/javascript" src="/static/scripts/plotly/plotly.min.js"></script>

您必须更改所包含文件的顺序

<script type="text/javascript" src="/static/scripts/plotly/dependencies/d3.v3.min.js"></script>
<script type="text/javascript" src="/static/scripts/plotly/plotly.min.js"></script>

您必须更改所包含文件的顺序

<script type="text/javascript" src="/static/scripts/plotly/dependencies/d3.v3.min.js"></script>
<script type="text/javascript" src="/static/scripts/plotly/plotly.min.js"></script>

您必须更改所包含文件的顺序

<script type="text/javascript" src="/static/scripts/plotly/dependencies/d3.v3.min.js"></script>
<script type="text/javascript" src="/static/scripts/plotly/plotly.min.js"></script>