SVG image objects containing executable elements in a dashboard cannot be displayed on the following Tableau Server versions or Tableau Cloud.
For example, embed an SVG image which has the following XML to a dashboard:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE svg [
<!ENTITY myColor "red">
]>
<svg width="200" height="100" xmlns="http://www.w3.org/2000/svg">
<circle cx="50" cy="50" r="40" fill="&myColor;" />
<rect x="120" y="10" width="70" height="80" fill="&myColor;" />
</svg>
When publishing the workbook to Tableau Server or Tableau Cloud, the SVG image cannot be displayed.
In contrast, images in PNG format can be displayed correctly.
This is an intentional change resulting from a security enhancement. This enhancement proactively blocks the rendering of SVG files that contain potentially executable elements, such as <script>, <!ENTITY>, or <foreignObject> tags or onload attributes.
Use one of the following two options to resolve this issue:
Edit the SVG file to remove the blocked elements (such as <script>, onload, <!ENTITY>, and <foreignObject>). Re-add the modified file to the workbook and republish.
Convert the image from SVG to a different format, such as PNG or JPEG, and use that file in the dashboard instead.
005227361

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.