kchen0x / hexo-tag-echarts3 Goto Github PK
View Code? Open in Web Editor NEWA simple plugin for inserting ECharts 3 by using tags in Hexo.
A simple plugin for inserting ECharts 3 by using tags in Hexo.
雷达图,K线图等新类型图不支持,希望author在有时间的时候能update一下= =。
已经更改了head.swig,/echarts-template.html文件也改过了,但是本地预览正常,po在网页无法显示,请问可能是什么原因?
在template.html中通过http的方式引入echarts.js。
<script src="http://echarts.baidu.com/dist/echarts.common.min.js"></script>
然而在gitpages和coding pages都是通过https访问的,会在浏览器控制台直接报错。
能不能使用https的源呢?https://echarts.baidu.com/dist/echarts.common.min.js也是可以直接访问的。
name: "发布总数",
type: "line",
yAxisIndex: 1,
smooth: true,
showAllSymbol: true,
symbol: "circle",
symbolSize: 10,
itemStyle: {
color: "#3275FB"
},
lineStyle: {
color: "#3275FB",
shadowColor: 'rgba(0, 0, 0, 0.3)',
width: 3,
shadowBlur: 15,
shadowOffsetY: 15,
},
data: [0, 1, 5, 9, 15, 31]
},
{
name: "该月发布数",
type: "bar",
barWidth: 35,
itemStyle: {
normal: {
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
offset: 0,
color: "#FF9A22"
},
{
offset: 1,
color: "#FFD56E"
}
]),
barBorderRadius: [30, 30, 0, 0],
}
},
data: [0, 1, 4, 4, 6, 16]
}
]```
上面代码
我在第十行设置color为3275FB,但本地预览和部署上去之后显示的都是深红色
是echarts主题的问题吗
单页出现多图变量冲突,无法显示
I have a chart based on hexo-tag-echarts3, I deployed the page to codingme.net and github.com both. But it is strange that it is not available on github page.
codingme: http://allenmagic.coding.me/2017/10/19/%E5%9F%BA%E4%BA%8Etushare%E5%92%8CECharts%E7%9A%84%E9%87%91%E8%9E%8D%E6%95%B0%E6%8D%AE%E5%8F%AF%E8%A7%86%E5%8C%96/
Could you help me on this issue?
Hi! 👋
Firstly, thanks for your work on this project! 🙂
Today I used patch-package to patch [email protected]
for the project I'm working on.
Here is the diff that solved my problem:
diff --git a/node_modules/hexo-tag-echarts3/template.html b/node_modules/hexo-tag-echarts3/template.html
index aeb484e..a3d0b47 100644
--- a/node_modules/hexo-tag-echarts3/template.html
+++ b/node_modules/hexo-tag-echarts3/template.html
@@ -1,5 +1,13 @@
<div id="<%- id %>" style="width: <%- width %>;height: <%- height %>px;margin: 0 auto"></div>
-<script src="https://cdn.bootcss.com/echarts/3.8.0/echarts.common.min.js"></script>
+<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/echarts/dist/extension/bmap.min.js"></script>
+<script type="text/javascript" src="https://api.map.baidu.com/getscript?v=2.0&ak=rA4hkVP29Z2LB35VfAtgqmiC7iFBFl6Q&services=&t=20230906113724"></script>
+<script type="text/javascript" src="https://api.map.baidu.com/api?v=2.0&ak=rA4hkVP29Z2LB35VfAtgqmiC7iFBFl6Q&__ec_v__=20190126"></script>
+<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/echarts/map/js/world.js"></script>
+<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/echarts/map/js/china.js"></script>
+<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/echarts/dist/extension/dataTool.min.js"></script>
+<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/echarts-stat/dist/ecStat.min.js"></script>
+<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/echarts-gl/dist/echarts-gl.min.js"></script>
+<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/echarts/dist/echarts.min.js"></script>
<script type="text/javascript">
// 基于准备好的dom,初始化echarts实例
var myChart = echarts.init(document.getElementById('<%- id %>'));
This issue body was partially generated by patch-package.
插件还会有更新吗,很多 echarts 的官方实例都不行了呢,只能使用一些比较简单的图。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.