Skip to content

Commit

Permalink
Added docs for facets/pivot for the plotly docs
Browse files Browse the repository at this point in the history
  • Loading branch information
frievoe97 committed Apr 9, 2024
1 parent cff538b commit d68289e
Showing 1 changed file with 16 additions and 15 deletions.
31 changes: 16 additions & 15 deletions docs/ref-plotly.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ With the pivot attribute, you can modify the dataset by converting it from wide
|namesTo|name of the new column that contains the attributes|
|valuesTo|name of the new column that contains the values|
Besides converting, it is also possible to rename columns and normalize values. These two options can also be configured in the pivot attribute.
Besides converting, it is also possible to rename columns and normalize values. These two options can also be configured in the dataset attribute.
|**Field**|**Description**|
|---------|---------------|
Expand All @@ -125,22 +125,23 @@ Besides converting, it is also possible to rename columns and normalize values.
#### Example pivot data snippet

```yaml
pivot:
exclude:
- age
- dist_group
- main_mode
namesTo: names
valuesTo: values
dataset:
pivot:
exclude:
- age
- dist_group
- main_mode
namesTo: names
valuesTo: values
rename:
ref_share: Ref.
sim_share: Sim.
ref_share: Ref.
sim_share: Sim.
normalize:
target: values
groupBy:
- names
- dist_group
- age
target: values
groupBy:
- names
- dist_group
- age
```

### Facets
Expand Down

0 comments on commit d68289e

Please sign in to comment.