Skip to content

Commit

Permalink
Changed: set Vizzu's version to 0.9.x
Browse files Browse the repository at this point in the history
  • Loading branch information
veghdev committed Dec 13, 2023
1 parent 425bd2f commit 0e380d5
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/ipyvizzu/chart.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__(
Expand Down
2 changes: 1 addition & 1 deletion tests/assets/ref_fugue_preset.txt
Original file line number Diff line number Diff line change
@@ -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);'}
2 changes: 1 addition & 1 deletion tests/assets/ref_fugue_timeline.txt
Original file line number Diff line number Diff line change
@@ -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});'}
Expand Down
8 changes: 4 additions & 4 deletions tests/test_chart.py
Original file line number Diff line number Diff line change
Expand Up @@ -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');",
)

Expand Down Expand Up @@ -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');",
)

Expand Down Expand Up @@ -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');",
)

Expand All @@ -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);"
Expand Down

0 comments on commit 0e380d5

Please sign in to comment.