# Rose

The **rose chart** is very similar to the doughnut chart but instead of being the sectors degrees indicating the size of the value, it is the radius of the sector, this means that all sectors are equal in width but vary in height.&#x20;

```python
data = [
    {'value': 1048, 'name': 'Search Engine'},
    {'value': 735, 'name': 'Direct'},
    {'value': 580, 'name': 'Email'},
    {'value': 484, 'name': 'Union Ads'},
    {'value': 300, 'name': 'Video Ads'}
]
s.plt.rose(data=data, names='name', values='value', order=1)

# Same data as for the stacked barcharts
df = pd.read_csv('../data/test_stack_distribution.csv')

value_columns = [col for col in df.columns if col != "Segment"]
df = df[['Segment'] + value_columns]

doughnut_data = pd.DataFrame(columns=["name", "value"])
df_transposed = df.transpose().reset_index().drop(0)
value_columns = [col for col in df_transposed.columns if col != "index"]
doughnut_data["value"] = df_transposed[value_columns].apply(lambda row: sum(row), axis=1)
doughnut_data["name"] = df_transposed['index']

s.plt.rose(
    data=doughnut_data, values='value', names='name',
    order=2, rows_size=3, cols_size=6
)
```

<figure><img src="/files/79WozLkfFBBzBAGVqU8O" alt=""><figcaption><p>Rose charts</p></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.shimoku.com/dev/elements/charts/pie-charts/rose.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
