Closed myTeemo closed 6 years ago
通过设置 DJANGO_ECHARTS.js_names
解决。
比如
DJANGO_ECHARTS = {
'echarts_version': '4.0.4',
'renderer': 'svg',
'lib_js_host': 'local_host',
'map_js_host': 'local_host',
'local_host': '/static/js',
'js_urls': {
'wordcloud': 'echarts-wordcloud.mini'
}
}
1.在渲染多图表的时候,若添加词云,渲染对应的依赖js的时候,对应的百度资源无法使用,'http://echarts.baidu.com/asset/map/js/wordcloud.js ' 访问报404,也找不到wordcloud.js应该是echarts-wordcloud.mini.js,还望修正公共cdn
dependencies = merge_js_dependencies(*args)
dependencies 为echarts和wordcloud上述
self._extra_settings
的值一直是我觉着如果本地有仓库的话应该为:
烦请您查看一下,如有误解,还望解答。谢谢