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 2021/11/12 02:57:54 UTC

[GitHub] [echarts] pissang commented on issue #16056: Add the ability to add different colors in different segments to a single specific series

pissang commented on issue #16056:
URL: https://github.com/apache/echarts/issues/16056#issuecomment-966780267


   I'm not sure what strategy are you using. A better way is group your line segments by colors. For example:
   
   ```ts
   series: colorStrategies.map(colorStrategy => {
     return data.map(item => {
        return checkIfUseThisColor(item, colorStrategy)
              ? colorStrategy.color
              : '-' // Not display this data item.
     })
   });
   ```


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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