Back to bricks list
Introduction Getting Started
Architecture
Technical Documentation
Tasks
Barplot Plotly Boxplot Plotly Conda env agent Converter Create a sugar type of food Create folder from files Create json dict Create lab note Create note resource Create robot Decompress file Describe Download an scenario Download resource from a S3 bucket Download resource from external source Eat task Env agent Extract column tags to new row Extract column values to row tags Extract row tags to new column Extract row values to column tags Fly task Folder exporter Fs node extractor Generate lab note from note resource GenerateStreamlitTestApp Histogram Plotly Input Input from task output JSON Dict exporter JSON Dict importer Line Plotly Mamba env agent Melt Merge note resources Move robot Output Pip env agent Python agent R conda env agent R mamba env agent Resource exporter Resource importer Resource picker Resource set exporter Resource stacker Robot add Scatterplot Plotly Select a scenario Select note Select note template Send a scenario to a lab Send the resource to a lab Shell wait Smart interactive plot generator Smart json transformer Smart multi tables transformer Smart plot generator Smart table transformer Streamlit agent Streamlit conda agent Streamlit env agent Streamlit mamba agent Streamlit pip env agent Switch2 Table column aggregator Table column aggregator filter Table column annotator Table column concat Table column data numeric filter Table column data text filter Table column operation mass Table column operations Table column scaler Table column tag aggregator Table column tag unfolder Table column tags deleter Table column tags selector Table columns deleter Table columns selector Table exporter Table importer Table replace Table row aggregator Table row aggregator filter Table row annotator Table row concat Table row data numeric filter Table row data text filter Table row scaler Table row tag aggregator Table row tag unfolder Table row tags deleter Table row tags selector Table rows deleter Table rows selector Table scaler Table transposer Task Task Plotly Text exporter Text importer The travel of `Astro` Transformer Unzip and load resource Update note resource Upload resource to S3 Viewer Violinplot Plotly Wait Wait task Write to file Zip resource [Support] Update process typing name [Support] Update resource typing name
Version

Barplot Plotly

TASK
Typing name :  TASK.gws_core.PlotlyBarplot Brick :  gws_core

Bar plot and Stack bar plot from plotly

Plotly Bar plot plotly.express.bar()

please check : [https://plotly.com/python-api-reference/generated/plotly.express.bar.html]

Input

Table
2d excel like table

Output

Plotly figure
Plotly resource

Configuration

x

str: column name for x-axis' values

Type : string

y

Optional

str: column name for y-axis' values

Type : string

color

Optional

str: column name to color the graph figures

Type : string

title

Optional

Title of the graph

Type : string

y_axis_name

Optional

set the y axis name

Type : string

x_axis_name

Optional

set the x axis name

Type : string

template

Optional Advanced parameter

Plotly template to use

Type : stringAllowed values : ggplot2 seaborn simple_white plotly plotly_dark presentation xgridoff ygridoff gridon none 

animation_frame

Optional Advanced parameter

str: Values from this column are used to assign marks to animation frames.

Type : string

animation_group

Optional Advanced parameter

str: Values from this column are used to provide object-constancy across animation frames: rows with matching `animation_group`s will be treated as if they describe the same object in each frame.

Type : string

log_x

Optional Advanced parameter

the x-axis is log-scaled in cartesian coordinates.

Type : bool

log_y

Optional Advanced parameter

the y-axis is log-scaled in cartesian coordinates.

Type : bool

range_x

Optional Advanced parameter

If provided, overrides auto-scaling on the x-axis in cartesian coordinates.

Type : string

range_y

Optional Advanced parameter

If provided, overrides auto-scaling on the y-axis in cartesian coordinates.

Type : string

width

Optional Advanced parameter

int: The figure width in pixels.

Type : int

height

Optional Advanced parameter

int The figure height in pixels

Type : int

label_columns

Optional Advanced parameter

one column per line, and same line for the text

Type : list

label_text

Optional Advanced parameter

text for labels, size should match 'colot to label'

Type : list

facet_row

Optional Advanced parameter

str: Values from this column are used to assign marks to facetted subplots in the vertical direction.

Type : string

facet_col

Optional Advanced parameter

Values from this column are used to assign marks to facetted subplots in the horizontal direction.

Type : string

facet_col_wrap

Optional Advanced parameter

int: Maximum number of facet columns.

Type : int

facet_row_spacing

Optional Advanced parameter

float: Spacing between facet rows, in paper units. Default is 0.03 or 0.0.7 when facet_col_wrap is used.

Type : float

facet_col_spacing

Optional Advanced parameter

float: Spacing between facet columns, in paper units. Default is 0.03 or 0.0.7 when facet_col_wrap is used.

Type : float

hover_data

Optional Advanced parameter

list str: Values from these columns appear in the hover tooltip.

Type : list

hover_name

Optional Advanced parameter

Values from this column appear in bold in the hover tooltip.

Type : string

orientation

Optional Advanced parameter

Orientation of the box plot ('v' for vertical, 'h' for horizontal)

Type : stringAllowed values : v h Default value : v

base

Optional Advanced parameter

Values from this column are used to position the base of the bar.

Type : string

opacity

Optional Advanced parameter

float: Value between 0 and 1. Sets the opacity for markers.

Type : float

barmode

Optional Advanced parameter

Bar mode for stacked or grouped histograms

Type : stringAllowed values : stack group overlay relative 

error_x

Optional Advanced parameter

str: Values from this column are used to size x-axis error bars

Type : string

error_x_minus

Optional Advanced parameter

str: Values from this column or array_like are used to size x-axis error bars in the negative direction.

Type : string

error_y

Optional Advanced parameter

str: Values from this column are used to size y-axis error bars

Type : string

error_y_minus

Optional Advanced parameter

str: Values from this column or array_like are used to size x-axis error bars in the negative direction.

Type : string

text

Optional

str: Values from this column or array_like appear in the figure as text labels.

Type : string

custom_data

Optional

str: Values from this column are displayed on the graph

Type : string