Template
ipyvizzustory.storylib.template
A module for storing the HTML
templates.
ipyvizzustory.storylib.template.VIZZU_STORY: str = 'https://cdn.jsdelivr.net/npm/vizzu-story@0.4/dist/vizzu-story.min.js'
module-attribute
A variable for storing the default url of the vizzu-story
package.
ipyvizzustory.storylib.template.DISPLAY_INDENT: str = ' '
module-attribute
A variable for storing the default indent in the HTML
template.
ipyvizzustory.storylib.template.DISPLAY_TEMPLATE: str = '\n<div>\n <vizzu-player id="{id}" {vizzu_attribute} {start_slide} controller></vizzu-player>\n <script type="module">\n import VizzuPlayer from "{vizzu_story}";\n\n const vp = document.getElementById("{id}");\n import(vp.vizzuUrl).then(vizzuLoaded => {{\n const lib = vizzuLoaded.default;\n const vizzuPlayerData = {vizzu_player_data};\n // story.set_size()\n {chart_size}\n vp.slides = vizzuPlayerData;\n vp.initializing.then(chart => {{\n // story.set_feature()\n {chart_features}\n // story.add_event()\n {chart_events}\n }});\n }});\n </script>\n</div>\n'
module-attribute
A variable for storing the vizzu-story
HTML
template.