Spaces:
Sleeping
Sleeping
David Vegh
commited on
Commit
•
1b448f0
1
Parent(s):
e4e9c7e
Update ipyvizzu_demo.ipynb
Browse files- ipyvizzu_demo.ipynb +16 -4
ipyvizzu_demo.ipynb
CHANGED
@@ -44,11 +44,12 @@
|
|
44 |
"from ipyvizzu import Chart, Data, Config, Style\n",
|
45 |
"\n",
|
46 |
"\n",
|
47 |
-
"
|
|
|
48 |
"# chart = Chart(width=\"640px\", height=\"360px\", display=\"begin\")\n",
|
49 |
"# chart = Chart(width=\"640px\", height=\"360px\", display=\"actual\") # default\n",
|
50 |
"# chart = Chart(width=\"640px\", height=\"360px\", display=\"end\")\n",
|
51 |
-
"chart = Chart(width=\"640px\", height=\"360px\", display=\"manual\")\n"
|
52 |
]
|
53 |
},
|
54 |
{
|
@@ -103,8 +104,19 @@
|
|
103 |
"# filter data by the selected gender\n",
|
104 |
"\n",
|
105 |
"data_filter = Data.filter(f\"record['Sex'] == '{gender}'\")\n",
|
106 |
-
"chart.animate(data_filter)\n"
|
107 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
108 |
]
|
109 |
}
|
110 |
],
|
|
|
44 |
"from ipyvizzu import Chart, Data, Config, Style\n",
|
45 |
"\n",
|
46 |
"\n",
|
47 |
+
"chart = Chart(width=\"640px\", height=\"360px\")\n",
|
48 |
+
"chart.scroll_into_view = True\n"
|
49 |
"# chart = Chart(width=\"640px\", height=\"360px\", display=\"begin\")\n",
|
50 |
"# chart = Chart(width=\"640px\", height=\"360px\", display=\"actual\") # default\n",
|
51 |
"# chart = Chart(width=\"640px\", height=\"360px\", display=\"end\")\n",
|
52 |
+
"# chart = Chart(width=\"640px\", height=\"360px\", display=\"manual\")\n"
|
53 |
]
|
54 |
},
|
55 |
{
|
|
|
104 |
"# filter data by the selected gender\n",
|
105 |
"\n",
|
106 |
"data_filter = Data.filter(f\"record['Sex'] == '{gender}'\")\n",
|
107 |
+
"chart.animate(data_filter)\n"
|
108 |
+
]
|
109 |
+
},
|
110 |
+
{
|
111 |
+
"cell_type": "code",
|
112 |
+
"execution_count": null,
|
113 |
+
"id": "e4ded5cf",
|
114 |
+
"metadata": {},
|
115 |
+
"outputs": [],
|
116 |
+
"source": [
|
117 |
+
"# display chart with show() method if display=\"manual\"\n",
|
118 |
+
"\n",
|
119 |
+
"# chart.show()\n"
|
120 |
]
|
121 |
}
|
122 |
],
|