提交 dd7ad217 编写于 作者: L lang

Fix markPoint x and y can't use percent string bug. #3098

上级 4081aa51
......@@ -79,7 +79,9 @@ define(function (require) {
// 1. If not specify the position with pixel directly
// 2. If `coord` is not a data array. Which uses `xAxis`,
// `yAxis` to specify the coord on each dimension
if ((isNaN(item.x) || isNaN(item.y))
// parseFloat first because item.x and item.y can be percent string like '20%'
if ((isNaN(parseFloat(item.x)) || isNaN(parseFloat(item.y)))
&& !zrUtil.isArray(item.coord)
&& coordSys
) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册