Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
强哥很慌张
Echarts
提交
2039e1d3
E
Echarts
项目概览
强哥很慌张
/
Echarts
通知
8
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
E
Echarts
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
2039e1d3
编写于
1月 06, 2020
作者:
Y
yufeng04
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix bug #11801 Throw error when the action 'showTip' dispatched
上级
f2d8e771
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
36 addition
and
5 deletion
+36
-5
src/chart/radar/RadarSeries.js
src/chart/radar/RadarSeries.js
+22
-0
test/radar.html
test/radar.html
+12
-3
test/runTest/actions/__meta__.json
test/runTest/actions/__meta__.json
+1
-1
test/runTest/actions/radar.json
test/runTest/actions/radar.json
+1
-1
未找到文件。
src/chart/radar/RadarSeries.js
浏览文件 @
2039e1d3
...
...
@@ -61,6 +61,28 @@ var RadarSeries = SeriesModel.extend({
}).
join
(
'
<br />
'
);
},
/**
* @implement
*/
getTooltipPosition
:
function
(
dataIndex
)
{
if
(
dataIndex
!=
null
)
{
var
data
=
this
.
getData
();
var
coordSys
=
this
.
coordinateSystem
;
var
values
=
data
.
getValues
(
zrUtil
.
map
(
coordSys
.
dimensions
,
function
(
dim
)
{
return
data
.
mapDimension
(
dim
);
}),
dataIndex
,
true
);
for
(
var
i
=
0
,
len
=
values
.
length
;
i
<
len
;
i
++
)
{
if
(
!
isNaN
(
values
[
i
]))
{
var
indicatorAxis
=
coordSys
.
_indicatorAxes
[
i
];
return
coordSys
.
coordToPoint
(
indicatorAxis
.
dataToCoord
(
values
[
i
]),
i
);
}
}
}
},
defaultOption
:
{
zlevel
:
0
,
z
:
2
,
...
...
test/radar.html
浏览文件 @
2039e1d3
...
...
@@ -93,10 +93,19 @@ under the License.
]
}]
});
var
theIndex
=
2
;
chart
.
on
(
'
click
'
,
function
(
params
)
{
console
.
log
(
params
)
})
console
.
log
(
params
);
if
(
theIndex
<
0
)
{
theIndex
=
2
;
}
chart
.
dispatchAction
({
type
:
'
showTip
'
,
seriesIndex
:
0
,
dataIndex
:
theIndex
});
theIndex
--
;
});
});
</script>
...
...
test/runTest/actions/__meta__.json
浏览文件 @
2039e1d3
...
...
@@ -112,7 +112,7 @@
"polar-rounded"
:
3
,
"polarLine"
:
1
,
"polarScatter"
:
1
,
"radar"
:
1
,
"radar"
:
2
,
"radar2"
:
1
,
"radar3"
:
1
,
"radar4"
:
1
,
...
...
test/runTest/actions/radar.json
浏览文件 @
2039e1d3
[{
"name"
:
"Action 1"
,
"ops"
:[{
"type"
:
"mousedown"
,
"time"
:
340
,
"x"
:
163
,
"y"
:
20
},{
"type"
:
"mouseup"
,
"time"
:
450
,
"x"
:
163
,
"y"
:
20
},{
"time"
:
451
,
"delay"
:
500
,
"type"
:
"screenshot-auto"
},{
"type"
:
"mousemove"
,
"time"
:
510
,
"x"
:
168
,
"y"
:
20
},{
"type"
:
"mousemove"
,
"time"
:
711
,
"x"
:
320
,
"y"
:
20
},{
"type"
:
"mousemove"
,
"time"
:
916
,
"x"
:
339
,
"y"
:
19
},{
"type"
:
"mousedown"
,
"time"
:
967
,
"x"
:
339
,
"y"
:
19
},{
"type"
:
"mouseup"
,
"time"
:
1060
,
"x"
:
339
,
"y"
:
19
},{
"time"
:
1061
,
"delay"
:
500
,
"type"
:
"screenshot-auto"
},{
"type"
:
"mousemove"
,
"time"
:
1161
,
"x"
:
341
,
"y"
:
19
},{
"type"
:
"mousemove"
,
"time"
:
1361
,
"x"
:
613
,
"y"
:
16
},{
"type"
:
"mousemove"
,
"time"
:
1567
,
"x"
:
643
,
"y"
:
16
},{
"type"
:
"mousedown"
,
"time"
:
1619
,
"x"
:
643
,
"y"
:
16
},{
"type"
:
"mouseup"
,
"time"
:
1704
,
"x"
:
643
,
"y"
:
16
},{
"time"
:
1705
,
"delay"
:
500
,
"type"
:
"screenshot-auto"
},{
"type"
:
"mousedown"
,
"time"
:
2574
,
"x"
:
643
,
"y"
:
16
},{
"type"
:
"mouseup"
,
"time"
:
2684
,
"x"
:
643
,
"y"
:
16
},{
"time"
:
2685
,
"delay"
:
500
,
"type"
:
"screenshot-auto"
},{
"type"
:
"mousemove"
,
"time"
:
2761
,
"x"
:
642
,
"y"
:
16
},{
"type"
:
"mousemove"
,
"time"
:
2963
,
"x"
:
564
,
"y"
:
22
},{
"type"
:
"mousemove"
,
"time"
:
3163
,
"x"
:
520
,
"y"
:
20
},{
"type"
:
"mousedown"
,
"time"
:
3306
,
"x"
:
517
,
"y"
:
18
},{
"type"
:
"mousemove"
,
"time"
:
3372
,
"x"
:
517
,
"y"
:
18
},{
"type"
:
"mouseup"
,
"time"
:
3391
,
"x"
:
517
,
"y"
:
18
},{
"time"
:
3392
,
"delay"
:
500
,
"type"
:
"screenshot-auto"
},{
"type"
:
"mousemove"
,
"time"
:
3820
,
"x"
:
508
,
"y"
:
19
},{
"type"
:
"mousemove"
,
"time"
:
4020
,
"x"
:
227
,
"y"
:
17
},{
"type"
:
"mousedown"
,
"time"
:
4182
,
"x"
:
226
,
"y"
:
17
},{
"type"
:
"mousemove"
,
"time"
:
4229
,
"x"
:
226
,
"y"
:
17
},{
"type"
:
"mouseup"
,
"time"
:
4285
,
"x"
:
226
,
"y"
:
17
},{
"time"
:
4286
,
"delay"
:
500
,
"type"
:
"screenshot-auto"
}],
"scrollY"
:
0
,
"scrollX"
:
0
,
"timestamp"
:
1568043188752
}]
\ No newline at end of file
[{
"name"
:
"Action 1"
,
"ops"
:[{
"type"
:
"mousedown"
,
"time"
:
340
,
"x"
:
163
,
"y"
:
20
},{
"type"
:
"mouseup"
,
"time"
:
450
,
"x"
:
163
,
"y"
:
20
},{
"time"
:
451
,
"delay"
:
500
,
"type"
:
"screenshot-auto"
},{
"type"
:
"mousemove"
,
"time"
:
510
,
"x"
:
168
,
"y"
:
20
},{
"type"
:
"mousemove"
,
"time"
:
711
,
"x"
:
320
,
"y"
:
20
},{
"type"
:
"mousemove"
,
"time"
:
916
,
"x"
:
339
,
"y"
:
19
},{
"type"
:
"mousedown"
,
"time"
:
967
,
"x"
:
339
,
"y"
:
19
},{
"type"
:
"mouseup"
,
"time"
:
1060
,
"x"
:
339
,
"y"
:
19
},{
"time"
:
1061
,
"delay"
:
500
,
"type"
:
"screenshot-auto"
},{
"type"
:
"mousemove"
,
"time"
:
1161
,
"x"
:
341
,
"y"
:
19
},{
"type"
:
"mousemove"
,
"time"
:
1361
,
"x"
:
613
,
"y"
:
16
},{
"type"
:
"mousemove"
,
"time"
:
1567
,
"x"
:
643
,
"y"
:
16
},{
"type"
:
"mousedown"
,
"time"
:
1619
,
"x"
:
643
,
"y"
:
16
},{
"type"
:
"mouseup"
,
"time"
:
1704
,
"x"
:
643
,
"y"
:
16
},{
"time"
:
1705
,
"delay"
:
500
,
"type"
:
"screenshot-auto"
},{
"type"
:
"mousedown"
,
"time"
:
2574
,
"x"
:
643
,
"y"
:
16
},{
"type"
:
"mouseup"
,
"time"
:
2684
,
"x"
:
643
,
"y"
:
16
},{
"time"
:
2685
,
"delay"
:
500
,
"type"
:
"screenshot-auto"
},{
"type"
:
"mousemove"
,
"time"
:
2761
,
"x"
:
642
,
"y"
:
16
},{
"type"
:
"mousemove"
,
"time"
:
2963
,
"x"
:
564
,
"y"
:
22
},{
"type"
:
"mousemove"
,
"time"
:
3163
,
"x"
:
520
,
"y"
:
20
},{
"type"
:
"mousedown"
,
"time"
:
3306
,
"x"
:
517
,
"y"
:
18
},{
"type"
:
"mousemove"
,
"time"
:
3372
,
"x"
:
517
,
"y"
:
18
},{
"type"
:
"mouseup"
,
"time"
:
3391
,
"x"
:
517
,
"y"
:
18
},{
"time"
:
3392
,
"delay"
:
500
,
"type"
:
"screenshot-auto"
},{
"type"
:
"mousemove"
,
"time"
:
3820
,
"x"
:
508
,
"y"
:
19
},{
"type"
:
"mousemove"
,
"time"
:
4020
,
"x"
:
227
,
"y"
:
17
},{
"type"
:
"mousedown"
,
"time"
:
4182
,
"x"
:
226
,
"y"
:
17
},{
"type"
:
"mousemove"
,
"time"
:
4229
,
"x"
:
226
,
"y"
:
17
},{
"type"
:
"mouseup"
,
"time"
:
4285
,
"x"
:
226
,
"y"
:
17
},{
"time"
:
4286
,
"delay"
:
500
,
"type"
:
"screenshot-auto"
}],
"scrollY"
:
0
,
"scrollX"
:
0
,
"timestamp"
:
1568043188752
},{
"name"
:
"Action 2"
,
"ops"
:[{
"type"
:
"mousemove"
,
"time"
:
600
,
"x"
:
777
,
"y"
:
264
},{
"type"
:
"mousemove"
,
"time"
:
806
,
"x"
:
704
,
"y"
:
236
},{
"type"
:
"mousemove"
,
"time"
:
933
,
"x"
:
703
,
"y"
:
232
},{
"type"
:
"mousemove"
,
"time"
:
1135
,
"x"
:
688
,
"y"
:
208
},{
"type"
:
"mousemove"
,
"time"
:
1333
,
"x"
:
682
,
"y"
:
201
},{
"type"
:
"mousemove"
,
"time"
:
1533
,
"x"
:
682
,
"y"
:
200
},{
"type"
:
"mousemove"
,
"time"
:
1737
,
"x"
:
682
,
"y"
:
197
},{
"type"
:
"mousedown"
,
"time"
:
1745
,
"x"
:
682
,
"y"
:
197
},{
"type"
:
"mouseup"
,
"time"
:
1908
,
"x"
:
682
,
"y"
:
197
},{
"time"
:
1909
,
"delay"
:
400
,
"type"
:
"screenshot-auto"
},{
"type"
:
"mousemove"
,
"time"
:
2283
,
"x"
:
682
,
"y"
:
197
},{
"type"
:
"mousedown"
,
"time"
:
2325
,
"x"
:
682
,
"y"
:
196
},{
"type"
:
"mouseup"
,
"time"
:
2489
,
"x"
:
682
,
"y"
:
196
},{
"time"
:
2490
,
"delay"
:
400
,
"type"
:
"screenshot-auto"
},{
"type"
:
"mousemove"
,
"time"
:
2497
,
"x"
:
682
,
"y"
:
196
},{
"type"
:
"mousemove"
,
"time"
:
2900
,
"x"
:
682
,
"y"
:
196
},{
"type"
:
"mousedown"
,
"time"
:
2940
,
"x"
:
682
,
"y"
:
196
},{
"type"
:
"mouseup"
,
"time"
:
3111
,
"x"
:
682
,
"y"
:
196
},{
"time"
:
3112
,
"delay"
:
400
,
"type"
:
"screenshot-auto"
},{
"type"
:
"mousemove"
,
"time"
:
3499
,
"x"
:
688
,
"y"
:
199
},{
"type"
:
"mousemove"
,
"time"
:
3708
,
"x"
:
798
,
"y"
:
281
}],
"scrollY"
:
0
,
"scrollX"
:
0
,
"timestamp"
:
1578309102517
}]
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录