SVG support — Oracle Analytics

Oracle Analytics Cloud and Server

Welcome to the Oracle Analytics Community: Please complete your User Profile and upload your Profile Picture

SVG support

Received Response
112
Views
2
Comments

Summary

SVG support

Content

Hi all,

I am trying to embed an SVG into the generated document. With the following code, I am able to export the svg in PDF


<fo:instream-foreign-object content-type="image/svg+xml" width="12pt" height="12pt">

  <svg  width="12.0pt" height="12.6pt">

  <g xdofo:shape-id="3">

  <ellipse rx="6.0" ry="6.0" cx="6.0" cy="6.0" fill="#050505"/>

  </g>

  </svg>

</fo:instream-foreign-object>

But the same does not work in HTML or Excel. Is there something that I can do to make this work in HTML and Export?
Thanks
Anoop

Answers

  • Anoop Raveendran
    Anoop Raveendran Rank 4 - Community Specialist

    I tried in chrome, firefox and ie, none of them is displaying the circle.

    In the log, I can see the following message

    SEVERE: html-image-dir property is required to generate svg file. This result does not contain svg object


    If we set this option, the an svg file will be generated in the specified directory
    Does this mean the svg has to be generated separately as a file and referenced from HTML?

    Is there any way I can embed the svg image directly to the html?

    SEVERE: html-image-dir property is required to generate svg file. This result does not contain svg object.

  • Sketz
    Sketz Rank 4 - Community Specialist

    I am able to se the circle in pdf and in html-output.

    Which browser are you using? Not every browser got a svg parser so you might have to download an add-on.