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/07/07 12:34:58 UTC

[GitHub] [incubator-echarts] cvetkovivan edited a comment on issue #9552: Dashed lines do not appear as dashed in the legend.

cvetkovivan edited a comment on issue #9552:
URL: https://github.com/apache/incubator-echarts/issues/9552#issuecomment-654726433


   So, i found one solution. 
   `EchartOptions.legend.data[] = {name: '', icon: ''}`
   
   You can add any icon to current data in your legend.
   Exapmle link: [codepen](https://codepen.io/usfbh/pen/BayMbzX).
   Also you can add svg icon. [documantation](https://echarts.apache.org/en/option.html#legend.data.icon).
   
   No idea to resovle this problem by any other solution.
   
   UPD: 
   Dashed svg path: 
   `'path://M180 1000 l0 -40 200 0 200 0 0 40 0 40 -200 0 -200 0 0 -40z, M810 1000 l0 -40 200 0 200 0 0 40 0 40 -200 0 -200 0 0 -40zm, M1440 1000 l0 -40 200 0 200 0 0 40 0 40 -200 0 -200 0 0 -40z'`
   Dotted svg path:
   `'path://M335 1316 c-63 -28 -125 -122 -125 -191 0 -71 62 -164 127 -192 18 -7 58 -13 90 -13 72 0 125 28 168 88 27 39 30 52 30 117 0 65 -3 78 -30 117 -43 61 -95 88 -170 87 -33 0 -73 -6 -90 -13z, M1035 1313 c-76 -40 -115 -103 -115 -188 0 -121 85 -205 205 -205 121 0 205 84 205 205 0 84 -39 148 -112 186 -46 24 -140 25 -183 2z, M1714 1298 c-61 -42 -94 -102 -94 -173 0 -71 33 -131 94 -172 41 -28 57 -33 107 -33 76 0 115 16 161 68 76 84 76 190 0 274 -46 52 -85 68 -161 68 -50 0 -66 -5 -107 -32z'`


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