Skip to content

Template

ipyvizzustory.storylib.template

A module for storing the html templates.

ipyvizzustory.storylib.template.VIZZU_STORY = 'https://cdn.jsdelivr.net/npm/vizzu-story@~0.1.0/dist/vizzu-story.min.js' module-attribute

str: A variable for storing the default url of vizzu-story package.

ipyvizzustory.storylib.template.DISPLAY_INDENT = ' ' module-attribute

str: A variable for storing the default indent in the html template.

ipyvizzustory.storylib.template.DISPLAY_TEMPLATE = '\n<div>\n <vizzu-player id="{id}" controller></vizzu-player>\n <script type="module">\n import VizzuPlayer, {{ Vizzu as lib }} from "{vizzu_story}";\n\n\n const vizzuPlayerData = {vizzu_player_data};\n const vizzuPlayer = document.getElementById("{id}")\n // story.set_size()\n {chart_size}\n vizzuPlayer.slides = vizzuPlayerData;\n vizzuPlayer.vizzu.initializing.then(chart => {{\n // story.set_feature()\n {chart_features}\n // story.add_event()\n {chart_events}\n }});\n </script>\n</div>\n' module-attribute

str: A variable for storing the vizzu-story html template.