Commit 1bcc66a9 authored by Sanjay Yadav's avatar Sanjay Yadav

DOC: Updated documentation.

parent d8c3f907
Pipeline #32581 passed with stage
in 1 minute and 9 seconds
......@@ -107,7 +107,7 @@ data:
filter:
url: cities.csv # Load cities.csv
args: # Filter results
Country: [Egypt, Sudan]} # WHERE column Country is Egypt or Sudan
Country: [Egypt, Sudan] # WHERE column Country is Egypt or Sudan
Population>: 100000 # AND column Population is 100,000+
```
......@@ -159,9 +159,9 @@ To create multiple slides from data, add `data:` to the change. For example:
source: input.pptx
target: output.pptx
data:
sales: {xlsx: sales.xlsx}
sales: {url: sales.xlsx}
change-title:
data: sales # For each row in the sales dataset (defined above)...
data: data['sales'].ix[0].to_dict(orient='records') # For each row in the sales dataset (defined above)
slide-number: 1 # ... copy slide 1 and apply this change
Title 1:
text: "Region {{ region }} has sales of ${{ sales }}"
......@@ -236,7 +236,6 @@ The following CSS-like commands change the shape's display attributes:
- `color`: sets the text / foreground color as CSS colors
- `fill`: sets the shape's background color as CSS colors
- `stroke`: sets the shape outline color as CSS colors
- `stroke-width`: sets the shape outline width in points
- `width`: sets the shape width in points
- `height`: sets the shape height in points
- `left`: sets the shape X position in points
......@@ -244,6 +243,23 @@ The following CSS-like commands change the shape's display attributes:
- `font-size`: sets the font size in points
- `font-family`: sets the font family as a font name
Example:
```yaml
Rectangle 1: # Take the shape named "Rectangle 1"
css:
data: data['sales']
style:
opacity: 0.5
color: '#ff0000'
fill: '#ffff00'
stroke: '#ffff00'
width: 100
height: 150
left: 30
top: 50
font-size: 14
font-family: Georgia
```
CSS colors can be specified in the same way they can in CSS.
1 point is 1/72 inches. All `style` elements and `data` will accept python expression or python function.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment