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/31 18:38:40 UTC

[GitHub] [incubator-echarts] 100pah commented on issue #12616: Add border type for style in render item of custom series.

100pah commented on issue #12616:
URL: https://github.com/apache/incubator-echarts/issues/12616#issuecomment-636510753


   @nguyencuongabcxyz 
   
   `lineDash` can be used for this case, like:
   ```js
   function renderItem(params, api) {
       var yValue = api.value(2);
       var start = api.coord([api.value(0), yValue]);
       var size = api.size([api.value(1) - api.value(0), yValue]);
       var style = api.style();
   
       return {
           type: 'rect',
           shape: {
               x: start[0] + 1,
               y: start[1],
               width: size[0] - 2,
               height: size[1]
           },
           style: {
               fill: 'red',
               stroke: 'green',
               lineWidth: 3,
               lineDash: [5, 5]
           }
       };
   }
   
   
   ```


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