Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Sanjay Yadav
PPT Generator
Commits
1bcc66a9
Commit
1bcc66a9
authored
Oct 31, 2017
by
Sanjay Yadav
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DOC: Updated documentation.
parent
d8c3f907
Pipeline
#32581
passed with stage
in 1 minute and 9 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
4 deletions
+20
-4
README.md
README.md
+20
-4
No files found.
README.md
View file @
1bcc66a9
...
...
@@ -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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment