• Resolved markvital

    (@markvital)


    My visualization has following structure (all in one file):

    <style> .... </style>
    
    <div id="container">
        <svg>
            // custom drawn svg icons
       </svg>
    </div>
    
    <script>
        // d3 viz javascript
    </script>

    If I paste it into WP-D3 Chart manager the code breaks
    Is there any way where I can put custom styles, and svg xml?

    It seems like the plugin is trying to wrap everything into <script> block

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Ruben

    (@figurebelow)

    Hi,

    any extra css can be uploaded in a file to your wordpress installation and then ‘included’ by adding its link into the ‘Include’ section of the chart editor.

    For the svg container and code, maybe you could try to append it programmatically from the D3 code, although I’m not sure about the svg icon part.

    You are right, in the backend everything is wrapped into a script block because the plugin result is javascript code appended to WordPress pages.

    Plugin Author Ruben

    (@figurebelow)

    Hi,

    I’m closing this as is not related to any specific issue.

    R.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘where to put extra html and css’ is closed to new replies.