Toggle navigation
不良类型鼠标hover细项展现
By
159*****255
2020-08-24 03:27:15
脚本
16
21
作品使用的第三方脚本
数据管理
上传数据
支持小于 5M 任意格式(csv, xlsx, json, xml, ...)的数据文件
上传后可以通过生成的文件链接异步获取托管的数据。
历史数据
0 条
无历史数据
代码修改记录
信息提示
保存作品
对当前截图不满意?你还可以
上传本地截图
重新截图
作品名称
作品描述
标签
geo
grid
legend
markLine
markPoint
bar
effectScatter
line
lines
map
timeline
title
toolbox
tooltip
visualMap
作品默认版本
最新
16
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
20:11:45
图表已生成
整理代码
刷新
代码
/* 首先感谢大家对我作品的喜爱,谢谢大家! *★,°*:.☆\( ̄▽ ̄)/$:*.°★*。撒花! 这里想和大家说明一下,大家做完修改后尽量不要在本作品中点击保存哈 在这里点击保存会覆盖原作品的哦,之后再浏览本作品看到的将会是你保存后的版本 而原作品需要切换到特定的版本才能重见天日 ???? 这也是怪我首发的时候选错了权限 ┭┮﹏┭┮ 发出来也是希望帮助更多的前端攻城狮解决echarts样式问题 请大家多多理解一下 ?? 饼图配置有疑问的可以评论哦,我看到了会及时回复哒(◍•ᴗ•◍) 最后感谢大家的理解与支持 *★,°*:.☆\( ̄▽ ̄)/$:*.°★*。撒花! 作者:suwanqing 编辑于2020-07-28 */ let index = 0; var colorList = ['#135fdc','#0281DB','#20a7df', '#58D5FF','#73DDFF','#91f0fb'] function fun() { var timer = setInterval(function() { myChart.dispatchAction({ type: 'hideTip', seriesIndex: 0, dataIndex: index }); // 显示提示框 myChart.dispatchAction({ type: 'showTip', seriesIndex: 0, dataIndex: index }); // 取消高亮指定的数据图形 myChart.dispatchAction({ type: 'downplay', seriesIndex: 0, dataIndex: index == 0? 5 : index -1 }); myChart.dispatchAction({ type: 'highlight', seriesIndex: 0, dataIndex: index }); index++; if (index > 5) { index = 0; } },3000) } fun() setTimeout(function() {fun()}, 5000); option = { // backgroundColor:'#060b16', backgroundColor:'transparent', title: { text: '59 Pcs', x: 'center', y: 'center', textStyle: { fontSize: 14, color:'#08f1f8', fontFamily:'微软雅黑', fontWeight:600, } }, toolbox: { left: 'center', feature: { dataZoom: { yAxisIndex: 'none' }, restore: {}, saveAsImage: {} } }, tooltip: { trigger: 'item' }, series: [{ type: 'pie', center: ['50%', '50%'], radius: ['25%', '35%'], clockwise: true, avoidLabelOverlap: true, hoverOffset: 15, itemStyle: { normal: { color: function(params) { return colorList[params.dataIndex] } } }, label: { show: true, position: 'outside', formatter: '{a|{b}:{d}%}\n{hr|}', fontSize:12, fontFamily:'微软雅黑', rich: { hr: { /* 再次声明一下,大家在这里修改之后不要点击上面的保存! 不要点击保存!不要点击保存!重要的事情说三遍! 你的修改会覆盖我的原代码的!感谢理解! --2020/8/4 by--suwanqing */ backgroundColor: 't', borderRadius: 3, width: 3, height: 3, padding: [3, 3, 0, -12] }, a: { padding: [-30, 15, -20, 15] } } }, labelLine: { normal: { length: 5, length2: 8, lineStyle: { width: 1 } } }, data: [{ 'name': '3D', 'value': 26 }, { 'name': '大面', 'value': 28 }, { 'name': '阴阳/底部', 'value': 7 } ], }] };