随笔分类 - Echarts
摘要:效果: option配置: option = { tooltip: { trigger: 'axis', axisPointer: { type: 'shadow', crossStyle: { color: '#999' } } }, legend: { data: ['苹果', '华为', '小
阅读全文
摘要:一、效果: 二、实现option: option = { tooltip: { trigger: 'axis', axisPointer: { animation: false } }, legend: { data: ['入职', '离职'] }, axisPointer: { link: {xA
阅读全文
摘要:一、安装echarts 和 echarts-wordcloud npm install echarts --save npm install echarts-wordcloud --save 二、项目中引入echarts 和 echarts-wordcloud import echarts from
阅读全文
摘要:1、先看效果: 2、思路: 是横向柱图沿着Y轴方向有正负数据的效果,所以做出图的关键在于组合series; 3、上option: option = { title: { "text": `201808`, "left": "center", "top": "5%", "textStyle": { "
阅读全文
摘要:核心代码 childOption.legend.formatter = (name) => { const itemValueArr = ChildSeruesData.filter(el => el.variable == name) const itemValueAll = ChildSerue
阅读全文
摘要:代码: option = { title: { text: '动态数据', subtext: '纯属虚构' }, tooltip: { trigger: 'axis', axisPointer: { type: 'cross', label: { backgroundColor: '#283b56'
阅读全文