Commit ad113517 authored by Sanjay Yadav's avatar Sanjay Yadav

ADD: Added test cases for multiple charts inside master-config.yaml.

parent 713e7df4
Pipeline #32566 passed with stage
in 1 minute and 10 seconds
source: master-input.pptx
target: master-output.pptx
data:
sales: {url: master-data.csv}
edit-charts: # Rule name
Bar Chart Name:
chart:
data: data['sales'][['Category', 'Sales', 'Profit', 'Growth']]
x: Category
color: # Define colors
Sales: '#D73027'
Profit: '#1A9850'
Growth: '#cccccc'
Column Chart Name:
chart:
data: data['sales'][['Category', 'Sales', 'Profit', 'Growth']]
x: Category
color: # Define colors
Sales: '#D73027'
Profit: '#1A9850'
Growth: '#cccccc'
Line Chart Name:
chart:
data: data['sales'][['Category', 'Sales', 'Profit', 'Growth']]
x: Category
color: # Define colors
Sales: '#D73027'
Profit: '#1A9850'
Growth: '#cccccc'
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'
Profit: '#1A9850'
Growth: '#cccccc'
opacity: 0.50 # Constant opacity for all lines
Scatter Chart Name:
chart:
data: data['sales'][['Category', 'Sales', 'Profit', 'Growth']]
x: Category
color: # Define colors
Sales: '#D73027'
Profit: '#1A9850'
Growth: '#cccccc'
Bubble Chart Name:
chart:
data: data['sales'][['Category', 'Sales', 'Profit', 'Growth']]
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'
Profit: '#1A9850'
Growth: '#cccccc'
Bubble Chart Name 3D:
chart:
data: data['sales'][['Category', 'Sales', 'Profit', 'Growth']]
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'
Profit: '#1A9850'
Growth: '#cccccc'
Radar Chart Name:
chart:
data: data['sales'][['Category', 'Sales', 'Profit', 'Growth']]
x: Category
color: # Define colors
Sales: '#D73027'
Profit: '#1A9850'
Growth: '#cccccc'
Donut Chart Name:
chart:
data: data['sales'][['Category', 'Sales']]
x: Category
color: # Define colors
Sales: '#D73027'
Profit: '#1A9850'
Growth: '#cccccc'
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
Category,Sales,Profit,Growth
Media,100,80,5
Pharmaceutical,50,20,10
Banking,75,30,20
Government,200,90,3
FMCG,120,55,8
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