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/10/20 10:06:10 UTC

[GitHub] [incubator-echarts] Hunlongyu opened a new issue #13460: Support inline svg

Hunlongyu opened a new issue #13460:
URL: https://github.com/apache/incubator-echarts/issues/13460


   Support inline svg
   
   ```js
   const svg = '<svg role="img" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" aria-labelledby="stopIconTitle"><rect width="14" height="14" x="5" y="5"></rect></svg>'
   
   ...
   series: [
    {
       type:  'scatter',
       coordinateSystem: 'geo',
       symbol: `image://${svg}`
     }
   ]
   ...
   ```


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


[GitHub] [incubator-echarts] Hunlongyu edited a comment on issue #13460: Support inline svg

Posted by GitBox <gi...@apache.org>.
Hunlongyu edited a comment on issue #13460:
URL: https://github.com/apache/incubator-echarts/issues/13460#issuecomment-712748154


   It's OK
   
   svg path
   
   ```js
   const path = '<path d="M512 0a341.312 341.312 0 0 0-341.312 341.312c0 140.672 189.952 490.688 286.4 651.52a63.936 63.936 0 0 0 109.824 0c96.448-160.832 286.4-510.848 286.4-651.52A341.312 341.312 0 0 0 512 0z m0 512a170.688 170.688 0 1 1 0-341.312A170.688 170.688 0 0 1 512 512z" fill="#ffe400" p-id="1159"></path>'
   
   ...
   series: [
    {
       type:  'scatter',
       coordinateSystem: 'geo',
       symbol: `path://${path}`
     }
   ]
   ...
   ```


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


[GitHub] [incubator-echarts] Hunlongyu closed issue #13460: Support inline svg

Posted by GitBox <gi...@apache.org>.
Hunlongyu closed issue #13460:
URL: https://github.com/apache/incubator-echarts/issues/13460


   


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


[GitHub] [incubator-echarts] Hunlongyu commented on issue #13460: Support inline svg

Posted by GitBox <gi...@apache.org>.
Hunlongyu commented on issue #13460:
URL: https://github.com/apache/incubator-echarts/issues/13460#issuecomment-712748154


   ```js
   const path= '<path d="M512 0a341.312 341.312 0 0 0-341.312 341.312c0 140.672 189.952 490.688 286.4 651.52a63.936 63.936 0 0 0 109.824 0c96.448-160.832 286.4-510.848 286.4-651.52A341.312 341.312 0 0 0 512 0z m0 512a170.688 170.688 0 1 1 0-341.312A170.688 170.688 0 0 1 512 512z" fill="#ffe400" p-id="1159"></path>'
   
   ...
   series: [
    {
       type:  'scatter',
       coordinateSystem: 'geo',
       symbol: `path://${path}`
     }
   ]
   ...
   ```


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


[GitHub] [incubator-echarts] Hunlongyu edited a comment on issue #13460: Support inline svg

Posted by GitBox <gi...@apache.org>.
Hunlongyu edited a comment on issue #13460:
URL: https://github.com/apache/incubator-echarts/issues/13460#issuecomment-712748154


   It's OK
   
   svg path
   
   ```js
   const path= '<path d="M512 0a341.312 341.312 0 0 0-341.312 341.312c0 140.672 189.952 490.688 286.4 651.52a63.936 63.936 0 0 0 109.824 0c96.448-160.832 286.4-510.848 286.4-651.52A341.312 341.312 0 0 0 512 0z m0 512a170.688 170.688 0 1 1 0-341.312A170.688 170.688 0 0 1 512 512z" fill="#ffe400" p-id="1159"></path>'
   
   ...
   series: [
    {
       type:  'scatter',
       coordinateSystem: 'geo',
       symbol: `path://${path}`
     }
   ]
   ...
   ```


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