gws_core

Introduction
Getting Started
Developer guide
Release
Architecture
CLI
Technical documentations
Version

VennDiagramView

VennDiagramView

Base class for creating Venn diagrams.

:property label: The label of the plot :type label: str

The view model is:

{
    "type": "venn-diagram-view",
    "title": str,
    "caption": str,
    "data": {
        "label": str,
        "total_number_of_groups": int
        "group_names": List[str],
        "sections": [
            {
                "group_names": List[str],
                "data": [],
            },
            ...
        ]
    }
}
Attributes
label: str
Functions
__init__

Initialize self. See help(type(self)) for accurate signature.

add_group
name : str
data : Union
add_technical_info

Add technical info

technical_info : TechnicalInfo
copy_info

Copy the view information from another view

view : View
view to copy the information from
data_to_dict

Convert to dictionary

params : ConfigParams
Return type : dict
disable_pagination

Mark the view as not interactive, disable the pagination

get_style

Get style

Return type : TypingStyle
get_technical_info

Get technical info dict

key : str
Return type : TechnicalInfo
get_technical_info_dict

Get technical info

Return type : TechnicalInfoDict
get_title

Get title

Return type : Optional
get_type

Get type

Return type : ViewType
is_favorite

Is favorite

Return type : bool
is_pagination_disabled

Is interaction disabled

Return type : bool
set_favorite

Set favorite

favorite : bool
set_style

Set typing style for this view instance. This overrides the style defines in the view decorator and the default style of the view type With this you can define a custom style for a specific view instance when you view is generic.

style : TypingStyle
set_technical_info_dict

Set technical info

technical_info : TechnicalInfoDict
set_title

Set title

title : str
to_dto

Convert to DTO

params : ConfigParams
Return type : ViewDTO
generate_range @classmethod

Generate range list like 0,1,2...length

length : int
Return type : List
get_specs @classmethod
Return type : Dict
json_is_from_view @classmethod

Method that return true is the provided json is a json of a view

json_ : Any
Return type : bool