Commit d8c3f907 authored by Sanjay Yadav's avatar Sanjay Yadav

DOC: Updated documentation.

parent d5e590f5
Pipeline #32577 passed with stage
in 1 minute and 9 seconds
......@@ -455,36 +455,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
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
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:
......@@ -492,9 +492,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:
......@@ -502,36 +502,36 @@ 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:
......@@ -570,8 +570,8 @@ the chart.
Example:
:::yaml
draw-bullet:
```yaml
draw-bullet:
Bullet Rectangle:
bullet:
data: data['bullet_data']['data'].ix[0]
......@@ -592,6 +592,7 @@ Example:
target: # Overwriting CSS for target
font-size: 12
color: '#cccccc'
```
The following keys can also be specified as an [expression](#expressions) and python functions:
`data:`, `target:`, `poor:`, `good:`, `average:`, `gradient`, `text` along will all style properties such as under style section `font-size`, `opacity`, `fill`, `color` etc.
......@@ -610,8 +611,8 @@ The following keys can also be specified as an [expression](#expressions) and py
Example:
:::yaml
draw-calendar:
```yaml
draw-calendar:
Calendar Rectangle:
calendarmap:
data:
......@@ -623,6 +624,7 @@ Example:
startdate: data.index[0]
style:
color: '#000000'
```
The following keys can also be specified as an [expression](#expressions) and python functions:
`data:`, `startdate:`, `lo:`, `hi:`, `weekstart:` and subelements of `style` section.
......@@ -643,8 +645,8 @@ The following keys can also be specified as an [expression](#expressions) and py
Example:
:::yaml
draw-heatgrid:
```yaml
draw-heatgrid:
Heatgrid Rectangle:
heatgrid:
data: data['heatgrid_data']
......@@ -663,6 +665,7 @@ Example:
font-size: 14
margin: 10
text-align: center
```
The following keys can also be specified as an [expression](#expressions) and python functions:
`data:`, `row:`, `column:`, `value:` and subelements of `style` section.
......@@ -679,8 +682,8 @@ The following keys can also be specified as an [expression](#expressions) and py
Example:
:::yaml
draw-sankey:
```yaml
draw-sankey:
Sankey Rectangle:
sankey:
data: data['sankey_data']
......@@ -693,6 +696,7 @@ Example:
function: "lambda g: _color.gradient(g['D'].sum() / g['E'].sum() * 2 - 1, _color.RdYlGn)"
groups: ['A', 'B', 'C']
stroke: '#ffffff'
```
The following keys can also be specified as an [expression](#expressions) and python functions:
`data:`, `size:`, `order:`, `text:`, `color`.
......@@ -709,8 +713,8 @@ The following keys can also be specified as an [expression](#expressions) and py
Example:
:::yaml
draw-treemap:
```yaml
draw-treemap:
Treemap Rectangle:
treemap:
data: data['treemap_data']
......@@ -724,6 +728,7 @@ Example:
function: "lambda v: _color.gradient(v['C'] / v['D'] - 1, _color.RdYlGn)"
text:
function: "lambda v: 'Num %d' % v['index']"
```
The following keys can also be specified as an [expression](#expressions) and python functions:
`data:`, `size:`, `keys:`, `values:`, `sort`, `color`, `text`.
......
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