Commit 43ee2def authored by S Anand's avatar S Anand

Upgrade to v0.2.0

parent fc37f711
Pipeline #32591 passed with stage
in 1 minute and 10 seconds
......@@ -497,36 +497,36 @@ edit-charts: # Rule name
data: data['sales'][['Category', 'Sales', 'Profit', 'Growth']]
x: Category
color: # Define colors
Sales: '#D73027' # Specify color of sales line in 6-digit hex
Profit: '#1A9850' # Specify color of profit line
Growth: '#cccccc' # Specify color of profit line
Sales: #D73027 # Specify color of sales line in 6-digit hex
Profit: #1A9850 # Specify color of profit line
Growth: #cccccc # Specify color of profit line
Column Chart Name:
chart:
data: data['sales'][['Category', 'Sales', 'Profit', 'Growth']]
x: Category
color: # Define colors
Sales: '#D73027' # Specify color of sales line in 6-digit hex
Profit: '#1A9850' # Specify color of profit line
Growth: '#cccccc' # Specify color of profit line
color: # Define colors
Sales: #D73027 # Specify color of sales line in 6-digit hex
Profit: #1A9850 # Specify color of profit line
Growth: #cccccc # Specify color of profit line
Line Chart Name:
chart:
data: data['sales'][['Category', 'Sales', 'Profit', 'Growth']]
x: Category
color: # Define colors
Sales: '#D73027' # Specify color of sales line in 6-digit hex
Profit: '#1A9850' # Specify color of profit line
Growth: '#cccccc' # Specify color of profit line
color: # Define colors
Sales: #D73027 # Specify color of sales line in 6-digit hex
Profit: #1A9850 # Specify color of profit line
Growth: #cccccc # Specify color of profit line
Area Chart Name: # Name of the chart shape. Case sensitive
chart:
data: data['sales'][['Category', 'Sales', 'Profit', 'Growth']] # Use sales data
x: Category # The x-axis is the Category column. Other columns are Y-axis values
color: # Define colors
Sales: '#D73027' # Specify color of sales line in 6-digit hex
Profit: '#1A9850' # Specify color of profit line
Growth: '#cccccc' # Specify color of profit line
Sales: #D73027 # Specify color of sales line in 6-digit hex
Profit: #1A9850 # Specify color of profit line
Growth: #cccccc # Specify color of profit line
opacity: 0.50 # Constant opacity for all lines
Scatter Chart Name:
......@@ -534,9 +534,9 @@ edit-charts: # Rule name
data: data['sales'][['Category', 'Sales', 'Profit', 'Growth']]
x: Category
color: # Define colors
Sales: '#D73027' # Specify color of sales line in 6-digit hex
Profit: '#1A9850' # Specify color of profit line
Growth: '#cccccc' # Specify color of profit line
Sales: #D73027 # Specify color of sales line in 6-digit hex
Profit: #1A9850 # Specify color of profit line
Growth: #cccccc # Specify color of profit line
Bubble Chart Name:
chart:
......@@ -544,47 +544,48 @@ edit-charts: # Rule name
x: Category
size: Growth # Optional: Column name from data for the size of the bubbles, if not defined default size will be 1
color: # Define colors
Sales: '#D73027' # Specify color of sales line in 6-digit hex
Profit: '#1A9850' # Specify color of profit line
Growth: '#cccccc' # Specify color of profit line
Sales: #D73027 # Specify color of sales line in 6-digit hex
Profit: #1A9850 # Specify color of profit line
Growth: #cccccc # Specify color of profit line
Radar Chart Name:
chart:
data: data['sales'][['Category', 'Sales', 'Profit', 'Growth']]
x: Category
color: # Define colors
Sales: '#D73027' # Specify color of sales line in 6-digit hex
Profit: '#1A9850' # Specify color of profit line
Growth: '#cccccc' # Specify color of profit line
Sales: #D73027 # Specify color of sales line in 6-digit hex
Profit: #1A9850 # Specify color of profit line
Growth: #cccccc # Specify color of profit line
Donut Chart Name:
chart:
data: data['sales'][['Category', 'Sales', 'Profit', 'Growth']]
x: Category
color: # Define colors
Sales: '#D73027' # Specify color of sales line in 6-digit hex
Profit: '#1A9850' # Specify color of profit line
Growth: '#cccccc' # Specify color of profit line
Sales: #D73027 # Specify color of sales line in 6-digit hex
Profit: #1A9850 # Specify color of profit line
Growth: #cccccc # Specify color of profit line
Pie Chart Name:
chart:
data: data['sales'][['Category', 'Sales', 'Profit', 'Growth']]
x: Category
color: # Define colors
Sales: '#D73027' # Specify color of sales line in 6-digit hex
Profit: '#1A9850' # Specify color of profit line
Growth: '#cccccc' # Specify color of profit line
Sales: #D73027 # Specify color of sales line in 6-digit hex
Profit: #1A9850 # Specify color of profit line
Growth: #cccccc # Specify color of profit line
```
The following keys can also be specified as an [expression](#expressions) and python functions:
`data:`, `x:`, `color:`, `opacity:`, `size:`.
For example, this example sets the opacity of columns named "dummy" as 0.2, and
other columns as 1.0. (TODO: change example if required)
other columns as 1.0.
```yaml
opacity:
function: '{col: 0.2 if "dummy" in col else 1.0 for col in data.columns}''
function: '{col: 0.2 if "dummy" in col else 1.0 for col in data.columns}'
```
## Custom charts
......
......@@ -4,7 +4,7 @@
"url": "http://code.gramener.com/sanjay.yadav/pptgen",
"author": "Sanjay Yadav",
"author_email": "sanjay.yadav@gramener.com",
"version": "0.1.1",
"version": "0.2.0",
"license": "Gramener",
"keywords": [
"powerpoint", "ppt", "pptx", "office", "open xml"
......
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