Skip to content

Commit

Permalink
addressing pr comments
Browse files Browse the repository at this point in the history
  • Loading branch information
nadijagraca committed May 10, 2024
1 parent 5d12ea5 commit b3329c6
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions vizro-ai/docs/pages/user-guides/chart-examples.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
# Explore VizroAI
# Gallery of examples

In this guide, we'll learn how to make more advanced charts with Plotly using data from [Plotly Express](https://plotly.com/python-api-reference/generated/plotly.express.data.html). The examples below use the OpenAI `"gpt-4-0613"` model as we are going to request specific updates to the layout of the charts, which are [more complex than the default GPT 3.5 model can handle](./customize-vizro-ai.md).
Take a look at some more advanced charts that can be created with Vizro-AI using data from [Plotly Express](https://plotly.com/python-api-reference/generated/plotly.express.data.html). The examples below use the OpenAI `"gpt-4-0613"` model as we are going to request specific updates to the layout of the charts, which are [more complex than the default GPT 3.5 model can handle](./customize-vizro-ai.md).

### Create a polar bar chart
### Polar bar chart

A polar bar chart is a circular graph where each axis represents a different variable, typically used for displaying cyclical or directional data.
It's suitable for quickly comparing multiple variables across different categories or directions. Let's make one using Vizro-AI.


!!! example "Polar Bar Chart"

=== "Resulting chart"
[![VizroAIChart1]][VizroAIChart1]

=== "Code for the cell"
```py
import vizro_ai
Expand All @@ -28,18 +31,19 @@ It's suitable for quickly comparing multiple variables across different categori
Improve layout by placing title to the left. Show legend""", explain=True)

```
=== "Resulting chart"
[![VizroAIChart1]][VizroAIChart1]

[VizroAIChart1]: ../../assets/user_guides/polar_bar_chart.png


### Create a geographical map chart
### Geographical map chart

The next chart we'll look at is a geographical map chart to visualize spatial patterns in data, which often reveals insights not seen in other charts.

!!! example "Map chart"

=== "Resulting chart"
[![VizroAIChart2]][VizroAIChart2]

=== "Code for the cell"
```py
import vizro_ai
Expand All @@ -59,18 +63,19 @@ The next chart we'll look at is a geographical map chart to visualize spatial pa
Increase the width and height of the figure.""", explain=True)

```
=== "Resulting chart"
[![VizroAIChart2]][VizroAIChart2]

[VizroAIChart2]: ../../assets/user_guides/map_chart.gif


### Create a surface plot
### 3D surface plot

Let's explore how to generate a 3-dimensional surface plot with VizroAI.

!!! example "Surface plot"

=== "Resulting chart"
[![VizroAIChart3]][VizroAIChart3]

=== "Code for the cell"
```py
import vizro_ai
Expand All @@ -86,7 +91,5 @@ Let's explore how to generate a 3-dimensional surface plot with VizroAI.
vizro_ai.plot(df, "create a surface plot")

```
=== "Resulting chart"
[![VizroAIChart3]][VizroAIChart3]

[VizroAIChart3]: ../../assets/user_guides/surface_plot.gif

0 comments on commit b3329c6

Please sign in to comment.