diff --git a/src/ipyvizzu/chart.py b/src/ipyvizzu/chart.py index c6164e97..1033b024 100644 --- a/src/ipyvizzu/chart.py +++ b/src/ipyvizzu/chart.py @@ -20,7 +20,7 @@ class Chart: # pylint: disable=too-many-instance-attributes - VIZZU: str = "https://cdn.jsdelivr.net/npm/vizzu@0.8/dist/vizzu.min.js" + VIZZU: str = "https://cdn.jsdelivr.net/npm/vizzu@0.9/dist/vizzu.min.js" """A variable for storing the default url of vizzu package.""" def __init__( diff --git a/tests/assets/ref_fugue_preset.txt b/tests/assets/ref_fugue_preset.txt index 1757163d..25af5a2b 100644 --- a/tests/assets/ref_fugue_preset.txt +++ b/tests/assets/ref_fugue_preset.txt @@ -1,4 +1,4 @@ {'application/javascript': 'if (window.IpyVizzu) window.IpyVizzu.changeAnalyticsTo(true);'} -{'application/javascript': "window.ipyvizzu.createChart(element, id, 'https://cdn.jsdelivr.net/npm/vizzu@0.8/dist/vizzu.min.js', '800px', '480px');"} +{'application/javascript': "window.ipyvizzu.createChart(element, id, 'https://cdn.jsdelivr.net/npm/vizzu@0.9/dist/vizzu.min.js', '800px', '480px');"} {'application/javascript': 'window.ipyvizzu.animate(element, id, id, \'end\', false, lib => { return {"data": {"series": [{"name": "a", "values": ["a", "b", "c", "d", "e"], "type": "dimension"}, {"name": "b", "values": [0.0, 1.0, 2.0, 3.0, 4.0], "type": "measure"}]}} }, undefined);'} {'application/javascript': 'window.ipyvizzu.animate(element, id, id, \'end\', false, lib => { return {"config": lib.presets.bar({\'x\': \'a\', \'y\': \'b\'})} }, undefined);'} diff --git a/tests/assets/ref_fugue_timeline.txt b/tests/assets/ref_fugue_timeline.txt index a78c3529..a22357b1 100644 --- a/tests/assets/ref_fugue_timeline.txt +++ b/tests/assets/ref_fugue_timeline.txt @@ -1,5 +1,5 @@ {'application/javascript': 'if (window.IpyVizzu) window.IpyVizzu.changeAnalyticsTo(true);'} -{'application/javascript': "window.ipyvizzu.createChart(element, id, 'https://cdn.jsdelivr.net/npm/vizzu@0.8/dist/vizzu.min.js', '800px', '480px');"} +{'application/javascript': "window.ipyvizzu.createChart(element, id, 'https://cdn.jsdelivr.net/npm/vizzu@0.9/dist/vizzu.min.js', '800px', '480px');"} {'application/javascript': 'window.ipyvizzu.animate(element, id, id, \'end\', false, lib => { return {"data": {"series": [{"name": "a", "values": ["a", "b", "c", "d", "e"], "type": "dimension"}, {"name": "b", "values": [0.0, 1.0, 2.0, 3.0, 4.0], "type": "measure"}, {"name": "c", "values": [1.0, 1.0, 2.0, 2.0, 3.0], "type": "measure"}, {"name": "_idx", "values": [0.0, 0.0, 1.0, 1.0, 2.0], "type": "measure"}]}} }, undefined);'} {'application/javascript': 'window.ipyvizzu.animate(element, id, id, \'end\', false, lib => { return {"data": {"filter": record => { return (record._idx == 0) }}, "config": lib.presets.bar({\'x\': \'b\', \'y\': \'a\', \'title\': \'x 1\'})} }, {"show": {"delay": 0}, "hide": {"delay": 0}, "title": {"duration": 0, "delay": 0}, "duration": 0.3});'} {'application/javascript': 'window.ipyvizzu.animate(element, id, id, \'end\', false, lib => { return {"data": {"filter": record => { return (record._idx == 1) }}, "config": lib.presets.bar({\'x\': \'b\', \'y\': \'a\', \'title\': \'x 2\'})} }, {"show": {"delay": 0}, "hide": {"delay": 0}, "title": {"duration": 0, "delay": 0}, "duration": 0.3});'} diff --git a/tests/test_chart.py b/tests/test_chart.py index 1082e0ea..f604fbe5 100644 --- a/tests/test_chart.py +++ b/tests/test_chart.py @@ -50,7 +50,7 @@ def test_init(self) -> None: "window.ipyvizzu.createChart(" + "element, " + "id, " - + "'https://cdn.jsdelivr.net/npm/vizzu@0.8/dist/vizzu.min.js', " + + "'https://cdn.jsdelivr.net/npm/vizzu@0.9/dist/vizzu.min.js', " + "'800px', '480px');", ) @@ -78,7 +78,7 @@ def test_init_div(self) -> None: "window.ipyvizzu.createChart(" + "element, " + "id, " - + "'https://cdn.jsdelivr.net/npm/vizzu@0.8/dist/vizzu.min.js', " + + "'https://cdn.jsdelivr.net/npm/vizzu@0.9/dist/vizzu.min.js', " + "'400px', '240px');", ) @@ -396,7 +396,7 @@ def test_change_analytics_before_initializing(self) -> None: "window.ipyvizzu.createChart(" + "element, " + "id, " - + "'https://cdn.jsdelivr.net/npm/vizzu@0.8/dist/vizzu.min.js', " + + "'https://cdn.jsdelivr.net/npm/vizzu@0.9/dist/vizzu.min.js', " + "'800px', '480px');", ) @@ -413,7 +413,7 @@ def test_change_analytics_after_initializing(self) -> None: + "window.ipyvizzu.createChart(" + "element, " + "id, " - + "'https://cdn.jsdelivr.net/npm/vizzu@0.8/dist/vizzu.min.js', " + + "'https://cdn.jsdelivr.net/npm/vizzu@0.9/dist/vizzu.min.js', " + "'800px', '480px');" + "\n" + "if (window.IpyVizzu) window.IpyVizzu.changeAnalyticsTo(false);"