Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
veghdev committed Dec 13, 2023
1 parent 1dfd854 commit 425bd2f
Show file tree
Hide file tree
Showing 60 changed files with 410 additions and 554 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@ dist

vizzu-lib

.venv
.venv*
.pdm-python
.tox
.coverage

placeholder-plugin.yaml
site
.chromium
node_modules
2 changes: 1 addition & 1 deletion docs/environments/bi/mode.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ chart = Chart(

data = Data()
df = pd.read_csv(
"https://ipyvizzu.vizzuhq.com/latest/showcases/titanic/titanic.csv"
"https://xIPYVIZZU_MINOR_VERSIONx/showcases/titanic/titanic.csv"
)
data.add_df(df)

Expand Down
2 changes: 1 addition & 1 deletion docs/environments/ide/pycharm.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ chart = Chart(

data = Data()
df = pd.read_csv(
"https://ipyvizzu.vizzuhq.com/latest/showcases/titanic/titanic.csv"
"https://xIPYVIZZU_MINOR_VERSIONx/showcases/titanic/titanic.csv"
)
data.add_df(df)

Expand Down
2 changes: 1 addition & 1 deletion docs/environments/ide/vscode.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ chart = Chart(

data = Data()
df = pd.read_csv(
"https://ipyvizzu.vizzuhq.com/latest/showcases/titanic/titanic.csv"
"https://xIPYVIZZU_MINOR_VERSIONx/showcases/titanic/titanic.csv"
)
data.add_df(df)

Expand Down
2 changes: 1 addition & 1 deletion docs/environments/notebook/colab.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ chart = Chart(

data = Data()
df = pd.read_csv(
"https://ipyvizzu.vizzuhq.com/latest/showcases/titanic/titanic.csv"
"https://xIPYVIZZU_MINOR_VERSIONx/showcases/titanic/titanic.csv"
)
data.add_df(df)

Expand Down
2 changes: 1 addition & 1 deletion docs/environments/notebook/databricks.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ chart = Chart(

data = Data()
df = pd.read_csv(
"https://ipyvizzu.vizzuhq.com/latest/showcases/titanic/titanic.csv"
"https://xIPYVIZZU_MINOR_VERSIONx/showcases/titanic/titanic.csv"
)
data.add_df(df)

Expand Down
2 changes: 1 addition & 1 deletion docs/environments/notebook/datacamp.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ chart = Chart(

data = Data()
df = pd.read_csv(
"https://ipyvizzu.vizzuhq.com/latest/showcases/titanic/titanic.csv"
"https://xIPYVIZZU_MINOR_VERSIONx/showcases/titanic/titanic.csv"
)
data.add_df(df)
chart.animate(data)
Expand Down
2 changes: 1 addition & 1 deletion docs/environments/notebook/deepnote.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ chart = Chart(

data = Data()
df = pd.read_csv(
"https://ipyvizzu.vizzuhq.com/latest/showcases/titanic/titanic.csv"
"https://xIPYVIZZU_MINOR_VERSIONx/showcases/titanic/titanic.csv"
)
data.add_df(df)

Expand Down
2 changes: 1 addition & 1 deletion docs/environments/notebook/jupyterlab.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ chart = Chart(

data = Data()
df = pd.read_csv(
"https://ipyvizzu.vizzuhq.com/latest/showcases/titanic/titanic.csv"
"https://xIPYVIZZU_MINOR_VERSIONx/showcases/titanic/titanic.csv"
)
data.add_df(df)

Expand Down
2 changes: 1 addition & 1 deletion docs/environments/notebook/jupyterlite.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ chart = Chart(

# add data to Chart
# download data from
# "https://ipyvizzu.vizzuhq.com/latest/showcases/titanic/titanic.csv"
# "https://xIPYVIZZU_MINOR_VERSIONx/showcases/titanic/titanic.csv"
# and place it in your JupyterLite workspace

DB_NAME = "JupyterLite Storage"
Expand Down
2 changes: 1 addition & 1 deletion docs/environments/notebook/jupyternotebook.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ chart = Chart(

data = Data()
df = pd.read_csv(
"https://ipyvizzu.vizzuhq.com/latest/showcases/titanic/titanic.csv"
"https://xIPYVIZZU_MINOR_VERSIONx/showcases/titanic/titanic.csv"
)
data.add_df(df)

Expand Down
2 changes: 1 addition & 1 deletion docs/environments/notebook/kaggle.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ chart = Chart(

data = Data()
df = pd.read_csv(
"https://ipyvizzu.vizzuhq.com/latest/showcases/titanic/titanic.csv"
"https://xIPYVIZZU_MINOR_VERSIONx/showcases/titanic/titanic.csv"
)
data.add_df(df)

Expand Down
2 changes: 1 addition & 1 deletion docs/environments/notebook/noteable.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ chart = Chart(

data = Data()
df = pd.read_csv(
"https://ipyvizzu.vizzuhq.com/latest/showcases/titanic/titanic.csv"
"https://xIPYVIZZU_MINOR_VERSIONx/showcases/titanic/titanic.csv"
)
data.add_df(df)

Expand Down
2 changes: 1 addition & 1 deletion docs/environments/platform/flask.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ chart = Chart(

data = Data()
df = pd.read_csv(
"https://ipyvizzu.vizzuhq.com/latest/showcases/titanic/titanic.csv"
"https://xIPYVIZZU_MINOR_VERSIONx/showcases/titanic/titanic.csv"
)
data.add_df(df)

Expand Down
2 changes: 1 addition & 1 deletion docs/environments/platform/mercury.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ chart = Chart(

data = Data()
df = pd.read_csv(
"https://ipyvizzu.vizzuhq.com/latest/showcases/titanic/titanic.csv"
"https://xIPYVIZZU_MINOR_VERSIONx/showcases/titanic/titanic.csv"
)
data.add_df(df)

Expand Down
2 changes: 1 addition & 1 deletion docs/environments/platform/panel.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def create_chart():

data = Data()
df = pd.read_csv(
"https://ipyvizzu.vizzuhq.com/latest/showcases/titanic/titanic.csv"
"https://xIPYVIZZU_MINOR_VERSIONx/showcases/titanic/titanic.csv"
)
data.add_df(df)

Expand Down
2 changes: 1 addition & 1 deletion docs/environments/platform/streamlit.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def create_chart():

data = Data()
df = pd.read_csv(
"https://ipyvizzu.vizzuhq.com/latest/showcases/titanic/titanic.csv"
"https://xIPYVIZZU_MINOR_VERSIONx/showcases/titanic/titanic.csv"
)
data.add_df(df)

Expand Down
2 changes: 1 addition & 1 deletion docs/environments/platform/voila.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ chart = Chart(

data = Data()
df = pd.read_csv(
"https://ipyvizzu.vizzuhq.com/latest/showcases/titanic/titanic.csv"
"https://xIPYVIZZU_MINOR_VERSIONx/showcases/titanic/titanic.csv"
)
data.add_df(df)

Expand Down
2 changes: 1 addition & 1 deletion docs/showcases/music.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import pandas as pd
from ipyvizzu import Chart, Data, Config, Style

df = pd.read_csv(
"https://ipyvizzu.vizzuhq.com/latest/showcases/music/music.csv",
"https://xIPYVIZZU_MINOR_VERSIONx/showcases/music/music.csv",
dtype={"Year": str},
)
data = Data()
Expand Down
2 changes: 1 addition & 1 deletion docs/showcases/musicformats.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import pandas as pd
from ipyvizzu import Chart, Data, Config, Style, DisplayTarget

df = pd.read_csv(
"https://ipyvizzu.vizzuhq.com/latest/showcases/musicformats/musicformats.csv",
"https://xIPYVIZZU_MINOR_VERSIONx/showcases/musicformats/musicformats.csv",
dtype={"Year": str},
)
data = Data()
Expand Down
2 changes: 1 addition & 1 deletion docs/showcases/nadal.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import pandas as pd
from ipyvizzu import Chart, Data, Config, Style, DisplayTarget

df = pd.read_csv(
"https://ipyvizzu.vizzuhq.com/latest/showcases/nadal/nadal.csv",
"https://xIPYVIZZU_MINOR_VERSIONx/showcases/nadal/nadal.csv",
dtype={
"Year": str,
"Round": str,
Expand Down
2 changes: 1 addition & 1 deletion docs/showcases/sales.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import pandas as pd
from ipyvizzu import Chart, Data, Config, Style

df = pd.read_csv(
"https://ipyvizzu.vizzuhq.com/latest/showcases/sales/sales.csv"
"https://xIPYVIZZU_MINOR_VERSIONx/showcases/sales/sales.csv"
)
data = Data()
data.add_df(df)
Expand Down
2 changes: 1 addition & 1 deletion docs/showcases/titanic.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import pandas as pd
from ipyvizzu import Chart, Data, Config

df = pd.read_csv(
"https://ipyvizzu.vizzuhq.com/latest/showcases/titanic/titanic.csv"
"https://xIPYVIZZU_MINOR_VERSIONx/showcases/titanic/titanic.csv"
)
data = Data()
data.add_df(df)
Expand Down
16 changes: 1 addition & 15 deletions docs/tutorial/aggregating_data.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,7 @@ within `Genres`.

<div id="tutorial_01"></div>

??? info "Info - How to setup Chart"
```python
import pandas as pd
from ipyvizzu import Chart, Data, Config

df = pd.read_csv(
"https://ipyvizzu.vizzuhq.com/latest/assets/data/music_data.csv"
)
data = Data()
data.add_df(df)

chart = Chart()

chart.animate(data)
```
{% include-markdown "tutorial/assets/setup/setup_a.md" %}

```python
chart.animate(Config({"channels": {"y": {"set": ["Popularity"]}}}))
Expand Down
29 changes: 1 addition & 28 deletions docs/tutorial/align_range.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,34 +21,7 @@ whereas on a bar chart, horizontally.

<div id="tutorial_01"></div>

??? info "Info - How to setup Chart"
```python
import pandas as pd
from ipyvizzu import Chart, Data, Config

df = pd.read_csv(
"https://ipyvizzu.vizzuhq.com/latest/assets/data/music_data.csv"
)
data = Data()
data.add_df(df)

chart = Chart()

chart.animate(data)

chart.animate(
Config(
{
"channels": {
"y": {"set": ["Popularity", "Kinds"]},
"x": {"set": ["Genres"]},
"color": {"set": ["Kinds"]},
"label": {"set": ["Popularity"]},
},
}
)
)
```
{% include-markdown "tutorial/assets/setup/setup_c.md" %}

Change align and configures the y axis labels to disappear during the animation.

Expand Down
31 changes: 2 additions & 29 deletions docs/tutorial/animation_control_keyframes.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,40 +5,13 @@ csv_url: ../../assets/data/music_data.csv
# Animation control & keyframes

Using the `control` property provided by the chart you can play, pause, stop,
seek or reverse the animations.
seek, speed up or reverse the animations.

In this step, we seek forward to `50%` of progress after the animation starts.

<div id="tutorial_01"></div>

??? info "Info - How to setup Chart"
```python
import pandas as pd
from ipyvizzu import Chart, Data, Config, Keyframe

df = pd.read_csv(
"https://ipyvizzu.vizzuhq.com/latest/assets/data/music_data.csv"
)
data = Data()
data.add_df(df)

chart = Chart()

chart.animate(data)

chart.animate(
Config(
{
"channels": {
"y": {"set": ["Popularity", "Kinds"]},
"x": {"set": ["Genres"]},
"color": {"set": ["Kinds"]},
"label": {"set": ["Popularity"]},
},
}
)
)
```
{% include-markdown "tutorial/assets/setup/setup_c.md" %}

```python
chart.animate(
Expand Down
29 changes: 1 addition & 28 deletions docs/tutorial/animation_options.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,34 +14,7 @@ the default animation options.

<div id="tutorial_01"></div>

??? info "Info - How to setup Chart"
```python
import pandas as pd
from ipyvizzu import Chart, Data, Config

df = pd.read_csv(
"https://ipyvizzu.vizzuhq.com/latest/assets/data/music_data.csv"
)
data = Data()
data.add_df(df)

chart = Chart()

chart.animate(data)

chart.animate(
Config(
{
"channels": {
"y": {"set": ["Popularity", "Kinds"]},
"x": {"set": ["Genres"]},
"color": {"set": ["Kinds"]},
"label": {"set": ["Popularity"]},
},
}
)
)
```
{% include-markdown "tutorial/assets/setup/setup_c.md" %}

```python
chart.animate(
Expand Down
3 changes: 3 additions & 0 deletions docs/tutorial/assets/setup/config_a.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```python
chart.animate(data)
```
12 changes: 12 additions & 0 deletions docs/tutorial/assets/setup/config_b.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
```python
chart.animate(
Config(
{
"channels": {
"y": {"set": ["Popularity"]},
"x": {"set": ["Genres"]},
},
}
)
)
```
15 changes: 15 additions & 0 deletions docs/tutorial/assets/setup/config_c.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
```python
chart.animate(
data,
Config(
{
"channels": {
"y": {"set": ["Popularity", "Kinds"]},
"x": {"set": ["Genres"]},
"color": {"set": ["Kinds"]},
"label": {"set": ["Popularity"]},
},
}
),
)
```
12 changes: 12 additions & 0 deletions docs/tutorial/assets/setup/init.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
```python
import pandas as pd
from ipyvizzu import Chart, Data, Config

df = pd.read_csv(
"https://xIPYVIZZU_MINOR_VERSIONx/assets/data/music_data.csv"
)
data = Data()
data.add_df(df)

chart = Chart()
```
Loading

0 comments on commit 425bd2f

Please sign in to comment.