上一页 1 2 3 4 5 6 ··· 11 下一页
摘要: 最近研究echarts,项目需要能够设置节点之间的连线也能设置颜色,研究了半天,发现tree图中,只有一个全局的设置项,只能全局设置颜色,很不方便,如下: itemStyle: { color: 自适应, borderColor: '#c23531', borderWidth: 1.5, borde 阅读全文
posted @ 2020-01-10 12:48 云雀sunshine 阅读(1641) 评论(0) 推荐(0) 编辑
摘要: 先上echarts官网示例图,可以点开链接查看,这里先上一张截图,以及官网代码 官网代码: myChart.showLoading(); //显示Loading标志; var myChart = echarts.init(document.getElementById('页面中div的id')); 阅读全文
posted @ 2020-01-10 12:45 云雀sunshine 阅读(9334) 评论(0) 推荐(0) 编辑
摘要: 问题图: 描述:如果数据为222500,222400,可能数据太大造成222不显示,就显示500,400,怎样解决呢?如下图所示解决方法: 阅读全文
posted @ 2020-01-10 12:05 云雀sunshine 阅读(5031) 评论(0) 推荐(0) 编辑
摘要: 基于 react 架构,对于 echarts 网络拓扑进行展示,遇到以下问题: 告警动态显示; 节点告警 节点间的连线告警 信息提示 信息提示位置 信息提示内容 1. 告警动态显示 1.1 节点告警 1.2 节点间的连线告警 2. 信息提示 1.1 信息提示位置: 默认在滑动节点/线的右下方; 1. 阅读全文
posted @ 2020-01-10 12:01 云雀sunshine 阅读(1465) 评论(0) 推荐(0) 编辑
摘要: 最近 react 项目中碰到关于 echarts 树tree 相关的问题: 1. 问题1: 树图,数据具有 id 属性时,默认选中第一层子节点的第一个叶子节点,收缩功能时,多出来该节点 解决办法(差):不要收缩功能;或 不要有 id 属性值; 解决办法:暂无 2. 问题2:树图,纵向展示时,收缩到根 阅读全文
posted @ 2020-01-10 12:00 云雀sunshine 阅读(960) 评论(0) 推荐(0) 编辑
摘要: 官网示例:https://www.echartsjs.com/examples/zh/editor.html?c=line-easing 源代码: var easingFuncs = { linear: function (k) { return k; }, quadraticIn: functio 阅读全文
posted @ 2020-01-10 11:59 云雀sunshine 阅读(1114) 评论(0) 推荐(0) 编辑
摘要: 问题描述: 鼠标移入,雷达图的时候,内容挤在一起,我要的效果是换行: 此时的代码,此时代码里面的\n换行也是没有效果的: tooltip: { trigger: 'item', show:true, formatter:function(params){ var s=''; s+=params.na 阅读全文
posted @ 2020-01-10 11:58 云雀sunshine 阅读(6814) 评论(0) 推荐(0) 编辑
摘要: 前言:今天使用 wb 新建 react 项目时,出现如下问题: 提示说明:与 yarn 有关。且与淘宝镜像有关,具体问题报告(log)如下: 原因:主要是 yarn 的淘宝镜像问题。 解决: 网上查找解决方法如下: 由于博主使用的是 windows 系统,只执行命令1,如下: 只执行了这句命令,再次 阅读全文
posted @ 2020-01-10 11:24 云雀sunshine 阅读(24298) 评论(0) 推荐(0) 编辑
摘要: npm install 报错:verbose stack SyntaxError: Unexpected end of JSON input while 进入你的项目目录:cd 项目名称重新设置链接:npm set registry https://registry.npmjs.org/重置cach 阅读全文
posted @ 2020-01-10 11:23 云雀sunshine 阅读(354) 评论(0) 推荐(0) 编辑
摘要: 最近: $ react-scripts start There might be a problem with the project dependency tree. It is likely not a bug in Create React App, but something you nee 阅读全文
posted @ 2020-01-10 11:23 云雀sunshine 阅读(4619) 评论(0) 推荐(0) 编辑
摘要: 项目里用到了Lodash。感觉有些还是很好用。就自己开研究了下。 参考链接:Lodash 中文文档 首先说明 Lodash 就是一个工具库,有很多比较好用的方法可以帮助我们提高开发效率。 Lodash 通过降低 array、number、objects、string 等等的使用难度从而让 JavaS 阅读全文
posted @ 2020-01-10 11:21 云雀sunshine 阅读(193) 评论(0) 推荐(0) 编辑
摘要: Lodash用来操作对象和集合,比Underscore拥有更多的功能和更好的性能。 官网:https://lodash.com/引用:<script src="//cdnjs.cloudflare.com/ajax/libs/lodash.js/2.4.1/lodash.min.js"></scri 阅读全文
posted @ 2020-01-10 11:21 云雀sunshine 阅读(382) 评论(0) 推荐(0) 编辑
摘要: Lodash用来操作对象和集合,比Underscore拥有更多的功能和更好的性能。 官网:https://lodash.com/引用:<script src="//cdnjs.cloudflare.com/ajax/libs/lodash.js/2.4.1/lodash.min.js"></scri 阅读全文
posted @ 2020-01-10 11:20 云雀sunshine 阅读(1077) 评论(0) 推荐(0) 编辑
摘要: Lodash用来操作对象和集合,比Underscore拥有更多的功能和更好的性能。官网:https://lodash.com/引用:<script src="//cdnjs.cloudflare.com/ajax/libs/lodash.js/2.4.1/lodash.min.js"></scrip 阅读全文
posted @ 2020-01-10 11:19 云雀sunshine 阅读(273) 评论(0) 推荐(0) 编辑
摘要: Lodash用来操作对象和集合,比Underscore拥有更多的功能和更好的性能。官网:https://lodash.com/引用:<script src="//cdnjs.cloudflare.com/ajax/libs/lodash.js/2.4.1/lodash.min.js"></scrip 阅读全文
posted @ 2020-01-10 11:19 云雀sunshine 阅读(1664) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 11 下一页