You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2020/01/02 10:54:19 UTC

[GitHub] [incubator-echarts] uxo2 opened a new issue #11969: 我发现了一个emphasis字段出现一些不可控制并且随机的样式问题

uxo2 opened a new issue #11969: 我发现了一个emphasis字段出现一些不可控制并且随机的样式问题
URL: https://github.com/apache/incubator-echarts/issues/11969
 
 
   版本: 任意版本都存在该问题. 
   
   字段: series --> textStyle --> emphasis 内部的非常字段backgroundColor, 
   
   该字段在npm文档中未显示( 如图):
   
   ![20200102182509](https://user-images.githubusercontent.com/30302637/71662936-45ed3180-2d8e-11ea-86da-ecf4bd1e3cd4.jpg)
   
   
   
   根据常规查看echarts文档我们并未发现backgroundColor字段, 如图:
   ![20200102183120](https://user-images.githubusercontent.com/30302637/71662941-4b4a7c00-2d8e-11ea-832e-c90907b5efea.jpg)
   
   按理说没有这个字段, 那么显示的效果就应该不会有影响, 然而却出现了很奇怪的问题.
   
   首先请看:
   
   需求: 一个接口,返回一个长度为40的词云数组, 展示词云. 并且增加一个动画,鼠标移入文字,文字就放大.
   
   OK, coding 完成
   
   ![20200102183430](https://user-images.githubusercontent.com/30302637/71663137-f824f900-2d8e-11ea-9178-4b21afd5d54f.jpg)
   ![20200102183524](https://user-images.githubusercontent.com/30302637/71663139-fb1fe980-2d8e-11ea-8817-9ebfb796951c.jpg)
   
   但是有一个问题
   
   
   有一部分文字, 在鼠标移入时出现了灰色.
   
   ![20200102183921](https://user-images.githubusercontent.com/30302637/71663211-36bab380-2d8f-11ea-987f-c851a295a019.jpg)
   
   OK, 问题出现了, 开始排查:
   
   然后发现规律:
   
   - 词云共有四种颜色: 随机颜色.
   - 四种颜色中, 一定有三种颜色正常, 一种不正常. 
   - 不正常的颜色每次刷新都会改变
   
   -------
   
   尝试操作:  颜色选取采用三种
   
   结果:  
   - 词云显示是三种颜色, 随机颜色
   - 三种颜色中, 必定其中俩种颜色正常, 一种不正常
   - 不正常的颜色每次刷新都会改变
   
   结论: 不是颜色的问题
   
   ------
   
   尝试操作: 颜色选取采用俩种
   
   结果: 其中一种正常, 一种不正常.
   
   -----
   
   尝试操作: 颜色选取一种,
   
   结果: 全部不正常
   
   --------
   
   尝试操作:  词云数量减少,  与上述结果一致.
   
   
   ----
   
   尝试操作: 移除backgroundColor
   
   结果: 未出现背景颜色, 其他一切正常.
   
   
   -------------
   
   分析:    backgroundColor会引发渲染数据数组有一项必定出现问题, 并且出现位置随机.,
   
   
   猜测: 源码中继承了父类属性, 从而导致子类实例化渲染出现问题
   
    
   
   
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [incubator-echarts] echarts-bot[bot] closed issue #11969: 我发现了一个emphasis字段出现一些不可控制并且随机的样式问题

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] closed issue #11969: 我发现了一个emphasis字段出现一些不可控制并且随机的样式问题
URL: https://github.com/apache/incubator-echarts/issues/11969
 
 
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [incubator-echarts] echarts-bot[bot] commented on issue #11969: 我发现了一个emphasis字段出现一些不可控制并且随机的样式问题

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #11969: 我发现了一个emphasis字段出现一些不可控制并且随机的样式问题
URL: https://github.com/apache/incubator-echarts/issues/11969#issuecomment-570174729
 
 
   This issue is not created using [issue template](https://ecomfe.github.io/echarts-issue-helper/) so I'm going to close it. 🙊
   Sorry for this, but it helps save our maintainers' time so that more developers get helped.
   Feel free to create another issue using the issue template.
   
   If you think you have already made your point clear without the template, or your problem cannot be covered by it, you may re-open this issue again.
   
   这个 issue 未使用 [issue 模板](https://ecomfe.github.io/echarts-issue-helper/?lang=zh-cn) 创建,所以我将关闭此 issue。
   为此带来的麻烦我深表歉意,但是请理解这是为了节约社区维护者的时间,以更高效地服务社区的开发者群体。
   如果您愿意,可以请使用 issue 模板重新创建 issue。
   
   如果你认为虽然没有使用模板,但你已经提供了复现问题的充分描述,或者你的问题无法使用模板表达,也可以重新 open 这个 issue。

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org