Skip to content

Commit d68289e

Browse files
committed
Added docs for facets/pivot for the plotly docs
1 parent cff538b commit d68289e

1 file changed

Lines changed: 16 additions & 15 deletions

File tree

docs/ref-plotly.md

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ With the pivot attribute, you can modify the dataset by converting it from wide
115115
|namesTo|name of the new column that contains the attributes|
116116
|valuesTo|name of the new column that contains the values|
117117
118-
Besides converting, it is also possible to rename columns and normalize values. These two options can also be configured in the pivot attribute.
118+
Besides converting, it is also possible to rename columns and normalize values. These two options can also be configured in the dataset attribute.
119119
120120
|**Field**|**Description**|
121121
|---------|---------------|
@@ -125,22 +125,23 @@ Besides converting, it is also possible to rename columns and normalize values.
125125
#### Example pivot data snippet
126126

127127
```yaml
128-
pivot:
129-
exclude:
130-
- age
131-
- dist_group
132-
- main_mode
133-
namesTo: names
134-
valuesTo: values
128+
dataset:
129+
pivot:
130+
exclude:
131+
- age
132+
- dist_group
133+
- main_mode
134+
namesTo: names
135+
valuesTo: values
135136
rename:
136-
ref_share: Ref.
137-
sim_share: Sim.
137+
ref_share: Ref.
138+
sim_share: Sim.
138139
normalize:
139-
target: values
140-
groupBy:
141-
- names
142-
- dist_group
143-
- age
140+
target: values
141+
groupBy:
142+
- names
143+
- dist_group
144+
- age
144145
```
145146

146147
### Facets

0 commit comments

Comments
 (0)