andy-hu1993 commented on issue #2701: 如何设置legend前的icon样式,比如颜色 URL: https://github.com/apache/incubator-echarts/issues/2701#issuecomment-438569815 @pissang @duxiaofeng-github 我折线图中的点有两种颜色 itemStyle: { normal: { color: function (param) { if (param.data == maxtime){ return '#ff151a'; } else { return '#1ca1ff'; } }, borderColor: '#1ca1ff' } } 这样设置了当value为某个值时设置折线的点为另一个颜色,但是legend的颜色每次都取第一个节点的颜色,同级别加color数组也不行,不知道如何自定义,难道只能设置icon吗
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
