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


   **Version**
   4.8.0-release
   
   **Steps to reproduce**
   symbol使用的是自定义的本地图片
   ``JavaScript
   function setChartOption(data) {
       return {
         series: [
           {
             type: "tree",
             data: [data],
             name: "treeChart",
             top: "1%",
             left: "5%",
             right: "8%",
             bottom: "5%",
             symbol: function (value, params) {
               if (params.data.type == "source") {
                  return "image://./../user/image/source.svg";
               } else if (params.data.type == "date") {
                 return "image://./../user/image/date.svg";
                 // return 'image://./../user/image/date2.svg'
               } else if (params.data.type == "location") {
                 return "image://./../user/image/location.svg";
               } else if (params.data.type == "system") {
                 return "image://./../user/image/system.svg";
               } else if (params.data.type == "connection") {
                 return "image://./../user/image/connection.svg";
               } else if (params.data.type == "events") {
                 return "image://./../user/image/event.svg";
               } else if (params.data.type == "evidence") {
                 return "image://./../user/image/evidence.svg";
               }
   
               if (params.data.hasModal == true) {
                 return "image://./../user/image/circle.svg";
               } else {
                 return "image://./../user/image/empty_circle.svg";
               }
             },
             // symbolSize: 16,
             symbolSize: [32, 32],
             initialTreeDepth: 10,
             // color:'#1b75d3',
             label: {
               position: "inside",
               // verticalAlign: 'bottom',
               align: "center",
               offset: [0, 26],
               color: "#1b75d3",
               padding: 0,
               fontSize: 12,
               formatter: function (params) {
                 return params.data.name;
               },
             },
   
             itemStyle: {
               normal: {
                 borderColor: "#1b75d3", //折点颜色
               },
             },
             lineStyle: {
               curveness: "0.4",
             },
             leaves: {
               name: "leaves",
               label: {
                 // position: 'center',
   
                 show: true,
                 position: "insideBottom",
                 verticalAlign: "middle",
                 // distance:20,
                 align: "center",
                 color: "#1b75d3",
                 height: 30,
                 lineHeight: 20,
                 padding: [0, 5],
                 offset: [0, 10],
               },
             },
             expandAndCollapse: true,
             animationDuration: 500,
             animationDurationUpdate: 700,
           },
         ],
       };
     }
   ``
   
   **What is expected?**
   在firefox下也可以正常显示
   
   **What is actually happening?**
   firefox无法正常显示自定义symbol,连label文本都消失了


----------------------------------------------------------------
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:
us...@infra.apache.org



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

Reply via email to