Home > front end >  Echarts toolbox in how to add images
Echarts toolbox in how to add images

Time:11-26

After I went to the toolbox to add pictures, add pictures don't show, I added a click event to picture above (click play box), I on the page click on the blank (this should be a picture) also can appear bounced, but the picture is not show, do you have the solution

CodePudding user response:

Your code?
The icon is can't find baidu example, can change a picture

CodePudding user response:

MyTool3: {
Show: true,
Title: 'custom extension methods 2',
Icon: 'image://../aa/legend. PNG ',
Onclick: function () {
Alert (' myToolHandler2 ')
}
}

CodePudding user response:

Is written, so click has bounced, but not picture

CodePudding user response:

Echarts bring graph still can show, but I don't can show that you join, I am using the vue, the page is a map, affect the

CodePudding user response:

Should write perfect path, or path is not correct, right under the browser to try first

CodePudding user response:

Browser can, that is, the vue display not to come out, the full path should be how to write

CodePudding user response:

Icon: 'image://../aa/legend. PNG ',
Change the HTTP or HTTPS at the beginning of
Icon: 'image://http://xxx.xxx.xxx/aa/legend.png,

CodePudding user response:

Bosses, my pictures, storing in the local HTTP or HTTPS, also need to add, I just added to the picture, but still did not come out corresponding should have been out of the picture, the position has been vacant (echarts own legend there will be a gap between, because I added a local pictures)

CodePudding user response:

I think you said that the path to the very right, but I changed or not

CodePudding user response:

Vue introduced image path, and website directly download the example above opened by vscode introduced image path is not the same as you


CodePudding user response:

Can also write relative path
  • Related