creadone commented on issue #10987: Correct way to straighten smoothed lines for ThemeRiver chart (question) URL: https://github.com/apache/incubator-echarts/issues/10987#issuecomment-535030277 @deqingli, can i ask another question? With the ThemeRiver i can't get the legend colors for draw custom legend in HTML. I found a tricky way: ```javascript drawLegend = function(instance, legend_name){ let palette = instance.getModel().getShallow('color'); let nameMap = instance.getModel()._componentsMap.data.series[0].nameMap['data']; return palette[nameMap[legend_name] - 1]; // Name index in group starts with one. } ``` Could there be a more correct and safer way for color extraction? 
---------------------------------------------------------------- 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: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
