evidently.renderers
Last updated
Last updated
Bases: object
Base class for all renderers
color_options :
Bases: object
id : str
info : BaseWidgetInfo
title : str
Bases: BaseRenderer
render_html(obj)
render_json(obj)
Bases: object
default_html_metric_renderer : Optional[MetricRenderer] = None
default_html_test_renderer : Optional[TestRenderer] = None
typed_renderers : dict
Bases: object
description : str
details : List[DetailsInfo]
groups : Dict[str, str]
name : str
status : str
with_details(title: str, info: BaseWidgetInfo)
Bases: BaseRenderer
html_description(obj)
json_description(obj)
render_html(obj)
render_json(obj)
Bases: object
field_name : str
options : Optional[dict] = None
sort : Optional[SortDirection] = None
title : str
type : ColumnType = 'string'
as_dict()
Bases: Enum
An enumeration.
HISTOGRAM = 'histogram'
LINE = 'line'
SCATTER = 'scatter'
STRING = 'string'
Bases: object
label : str
value : str
static float(label: str, value: float, precision: int)
create CounterData for float value with given precision.
Parameters
label
– counter label
value
– float value of counter
precision
– decimal precision
static int(label: str, value: int)
create CounterData for int value.
Parameters
label
– counter label
value
– int value
static string(label: str, value: str)
create CounterData for string value with given precision.
Parameters
label
– counter label
value
– string value of counter
Bases: object
info : Union[BaseWidgetInfo, PlotlyGraphInfo]
title : str
Bases: object
data : dict
layout : dict
title : str
static figure(title: str, figure: Figure)
create GraphData from plotly figure itself :param title: title of graph :param figure: plotly figure for getting data from
Bases: object
matrix : DataFrame
name : str
Bases: object
name : str
x : list
y : List[Union[int, float]]
Bases: object
details : Optional[RowDetails]
fields : dict
Bases: object
parts : List[DetailsPartInfo]
with_part(title: str, info: Union[BaseWidgetInfo, PlotlyGraphInfo])
Bases: Enum
An enumeration.
ASC = 'asc'
DESC = 'desc'
Bases: object
title : str
widget : BaseWidgetInfo
Bases: Enum
An enumeration.
FULL = 2
HALF = 1
generate widget with given counters
Parameters
title
– widget title
counters
– list of counters in widget
size
– widget size
Create a widget with heatmap(s)
generate widget with some text as header
Parameters
label
– text to display
title
– widget title
size
– widget size
generate widget with one or two histogram
Parameters
title
– widget title
primary_hist
– first histogram to show in widget
secondary_hist
– optional second histogram to show in widget
orientation
– bars orientation in histograms
color_options
– color options to use for widgets
size
– widget size
xaxis_title
– title for x-axis
yaxis_title
– title for y-axis
generate plotly plot with given data and layout (can be generated from plotly).
Parameters
title
– widget title
data
– plotly figure data
layout
– plotly figure layout
size
– widget size
generate plotly plot based on given plotly figure object.
Parameters
title
– title of widget
figure
– plotly figure which should be rendered as widget
size
– size of widget, default to WidgetSize.FULL
generate plotly plot with given GraphData object.
Parameters
graph_data
– plot data for widget
size
– size of widget to render
generate Tab widget with multiple graphs
Parameters
title
– widget title
figures
– list of graphs with tab titles
size
– widget size
generate widget with rich table: with additional column types and details for rows
Parameters
title
– widget title
size
– widget size
rows_per_page
– maximum number per page to show
columns
– list of columns in table
data
– list of dicts with data (key-value pairs, keys is according to ColumnDefinition.field_name)
generate simple table with given columns and data
Parameters
column_names
– list of column names in display order
data
– list of data rows (lists of object to show in table in order of columns), object will be converted to str
title
– widget title
size
– widget size
generate widget with tabs which can contain any other widget.
Parameters
title
– widget title
size
– widget size
tabs
– list of TabData with widgets to include
Draw tabs widget only if there is more than one tab, otherwise just draw one widget
color_options :
color_options :