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/05/30 13:38:55 UTC

[GitHub] [incubator-echarts] alex2wong commented on issue #12724: 使用背景图片代替柱状图柱条颜色

alex2wong commented on issue #12724:
URL: https://github.com/apache/incubator-echarts/issues/12724#issuecomment-636332300


   @CodeFly16 
   这个是已有功能,参考: https://echarts.apache.org/en/option.html#series-pie.itemStyle.color
   ```
   // Fill with texture
   color: {
       image: imageDom, // HTMLImageElement, and HTMLCanvasElement
       repeat: 'repeat' // whether to repeat texture, whose value can be repeat-x, repeat-y, or no-repeat
   }
   ```
   参考实例:
   
   https://gallery.echartsjs.com/editor.html?c=xJkwedUcAK&v=2
   
   
   


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



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