Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/433.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/84.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript Dimple.js图表在浏览器中不工作_Javascript_Html_D3.js_Github Pages_Dimple.js - Fatal编程技术网

Javascript Dimple.js图表在浏览器中不工作

Javascript Dimple.js图表在浏览器中不工作,javascript,html,d3.js,github-pages,dimple.js,Javascript,Html,D3.js,Github Pages,Dimple.js,我的github页面上有一个dimple.js图表 在html文件中,我有以下两行代码用于d3和dimple库,如中所述 该图表不会出现在我的github页面中,它会显示如下内容:, 已阻止加载混合活动内容“”[Learn More]simpsons_d3.html ReferenceError:未定义酒窝 我在Chrome中找到了一个可以直接访问的地方,然后它就开始工作了。但我想让其他人查看此页面。我应该如何防止这种情况发生?通过使用外部库解决了此问题 而不是 <script src

我的github页面上有一个dimple.js图表

在html文件中,我有以下两行代码用于d3和dimple库,如中所述


该图表不会出现在我的github页面中,它会显示如下内容:, 已阻止加载混合活动内容“”[Learn More]simpsons_d3.html ReferenceError:未定义酒窝


我在Chrome中找到了一个可以直接访问的地方,然后它就开始工作了。但我想让其他人查看此页面。我应该如何防止这种情况发生?

通过使用外部库解决了此问题

而不是

<script src="https://dimplejs.org/dist/dimple.v2.3.0.min.js"></script>

这很有效

<script src="https://cdnjs.cloudflare.com/ajax/libs/dimple/2.3.0/dimple.latest.min.js"></script>

<script src="https://cdnjs.cloudflare.com/ajax/libs/dimple/2.3.0/dimple.latest.min.js"></script>