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/11/20 21:35:13 UTC

[GitHub] [incubator-echarts] partitect opened a new issue #13655: svg image save bug on svg render with external symbol image

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


   ### Version
   4.9.0
   
   ### Steps to reproduce
   When i use save as image with type 'svg' on svg render, image dowloading but not showing. because i m using external image 
   
   **Svg error message : namespace prefix xlink for href on use is not defined**
   
   ```javascript
   symbol: "image://assets/img/tictoc.png"
   ```
   or
   ```javascript
   symbol: "image://assets/img/tictoc.svg"
   ```
   
   ![Line Chart](https://i.ibb.co/8c6QCZt/Ekran-Resmi-2020-11-21-00-23-31.png)
   
   ![Svg Error](https://i.ibb.co/wpmkZCV/Ekran-Resmi-2020-11-21-00-23-04.png)
   
   ![Svg Error Lines](https://i.ibb.co/LZLx3sy/Ekran-Resmi-2020-11-21-00-23-56.png)
   
   ### What is expected?
   External images can be convert to path image or data image
   
   ### What is actually happening?
   Svg images not showing
   
   <!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
   <!-- This issue is in English. DO NOT REMOVE -->


----------------------------------------------------------------
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] plainheart commented on issue #13655: svg image save bug on svg render with external symbol image

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


   Well, thanks for your feedback! I've reproduced this bug. Will fix it later.


----------------------------------------------------------------
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] pissang closed issue #13655: svg image save bug on svg render with external symbol image

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


   


----------------------------------------------------------------
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] plainheart commented on issue #13655: svg image save bug on svg render with external symbol image

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


   Could you provide us with a demo? Especially the broken SVG file.


----------------------------------------------------------------
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] partitect commented on issue #13655: svg image save bug on svg render with external symbol image

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


   my chart code is
   
   images tested on local assets and remote url
   
   <pre>var myChart = echarts.init(document.getElementById("myChart"), null, {renderer: 'svg'});
   var toolbox ={
   top: 10,
   right: 10,
   show: true,
   feature: {
   mark: { show: false },
   dataView: { show: false, readOnly: false },
   magicType: { show: true, type: ["stack", "tiled"], title: "Change" },
   restore: { show: true, title: "Refresh" },
   saveAsImage: { show: true, title: "Save As Image",pixelRatio:2,type:'svg' }
   }
   }
   myChart.setOption({
   tooltip: {
   trigger: "axis"
   },
   legend: {
   data: ["Tictoc", "Whatsapp", "Snapchat"],
   itemGap: 30,
   itemWidth: 40,
   itemHeight: 40
   },
   toolbox: toolbox,
   grid: {
   show: false,
   containLabel: true,
   left: "10",
   right: "30",
   top: "70",
   bottom: "10"
   },
   color: ["#5ea9dd", "#54cc61", "#fffa04"],
   
   calculable: true,
   xAxis: [
   	{
   		type: "category",
   		boundaryGap: false,
   		data: ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"]
   	}
   ],
   yAxis: [
   	{
   		type: "value"
   	}
   ],
   series: [
   	{
   		name: "Tictoc",
   		type: "line",
   		smooth: true,
   		itemStyle: {
   			normal: {
   				areaStyle: { type: "default", shadowColor: "rgba(0, 0, 0, 0.9)", shadowBlur: 30, opacity: 0.8 },
   				lineStyle: { opacity: 0 }
   			}
   		},
   		data: [1320, 1132, 601, 234, 120, 90, 1680],
   		symbol: "image://https://marka-logo.com/wp-content/uploads/2020/04/TikTok-Logo.png",
   		symbolSize: 40
   	},
   	{
   		name: "Whatsapp",
   		type: "line",
   		smooth: true,
   		itemStyle: {
   			normal: {
   				areaStyle: { type: "default", shadowColor: "rgba(0, 0, 0, 0.9)", shadowBlur: 30, opacity: 0.8 },
   				lineStyle: { opacity: 0 }
   			}
   		},
   		data: [520, 182, 434, 1420, 390, 30, 1480],
   		symbol: "image://https://marka-logo.com/wp-content/uploads/2020/04/TikTok-Logo.png",
   		symbolSize: 40
   	},
   	{
   		name: "Snapchat",
   		type: "line",
   		smooth: true,
   		itemStyle: {
   			normal: {
   				areaStyle: { type: "default", shadowColor: "rgba(0, 0, 0, 0.9)", shadowBlur: 30, opacity: 0.8 },
   				lineStyle: { opacity: 0 }
   			}
   		},
   
   		data: [10, 12, 21, 54, 260, 830, 710],
   		symbol: "image://https://marka-logo.com/wp-content/uploads/2020/04/TikTok-Logo.png",
   		symbolSize: 40
   	}
   ]
   });</pre>


----------------------------------------------------------------
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] echarts-bot[bot] commented on issue #13655: svg image save bug on svg render with external symbol image

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #13655:
URL: https://github.com/apache/incubator-echarts/issues/13655#issuecomment-731419043


   Hi! We've received your issue and please be patient to get responded. 🎉
   The average response time is expected to be within one day for weekdays.
   
   In the meanwhile, please make sure that **you have posted enough image to demo your request**. You may also check out the [API](http://echarts.apache.org/api.html) and [chart option](http://echarts.apache.org/option.html) to get the answer.
   
   If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to dev@echarts.apache.org. Please attach the issue link if it's a technical question.
   
   If you are interested in the project, you may also subscribe our [mailing list](https://echarts.apache.org/en/maillist.html).
   
   Have a nice day! 🍵


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