Skip to content

msaJustPyUI Module

.justpy.chartcomponents


Attributes

s module-attribute

s = '\n<div style="width:100%;"><div style="position:relative;width:100%;height:0;padding-bottom:60%;"><iframe src="about:blank" style="position:absolute;width:100%;height:100%;left:0;top:0;border:none !important;" data-html={} onload="this.contentDocument.open();this.contentDocument.write(    decodeURIComponent(this.getAttribute(\'data-html\')));this.contentDocument.close();" allowfullscreen webkitallowfullscreen mozallowfullscreen></iframe></div></div>\n'

Classes

AltairChart

Bases: Div

Attributes

chart instance-attribute
chart = None
options instance-attribute
options = {}
use_cache instance-attribute
use_cache = False
vega_source instance-attribute
vega_source = None
vue_type class-attribute
vue_type = 'altairjp'

Functions

__init__
__init__(**kwargs)
convert_object_to_dict
convert_object_to_dict()

BokehChart

Bases: Div

Attributes

chart instance-attribute
chart = None
chart_dict instance-attribute
chart_dict = {}
config instance-attribute
config = {}
use_cache instance-attribute
use_cache = False
vue_type class-attribute
vue_type = 'bokehjp'

Functions

__init__
__init__(**kwargs)
convert_object_to_dict
convert_object_to_dict()

FoliumChart

Bases: Div

Attributes

chart instance-attribute
chart = None
inner_div instance-attribute
inner_div = Div(a=self)
use_cache instance-attribute
use_cache = False

Functions

__init__
__init__(**kwargs)
convert_object_to_dict
convert_object_to_dict()

HighCharts

Bases: JustpyBaseComponent

Attributes

allowed_events instance-attribute
allowed_events = [
    "tooltip",
    "point_click",
    "point_select",
    "point_unselect",
    "series_hide",
    "series_show",
    "series_click",
    "zoom_x",
    "zoom_y",
]
chart_types class-attribute
chart_types = [
    "columnrange",
    "cylinder",
    "dependencywheel",
    "errorbar",
    "funnel",
    "funnel3d",
    "gauge",
    "heatmap",
    "histogram",
    "item",
    "line",
    "networkgraph",
    "organization",
    "packedbubble",
    "pareto",
    "pie",
    "polygon",
    "pyramid",
    "pyramid3d",
    "sankey",
    "scatter",
    "scatter3d",
    "solidgauge",
    "spline",
    "streamgraph",
    "sunburst",
    "tilemap",
    "timeline",
    "treemap",
    "variablepie",
    "variwide",
    "vector",
    "venn",
    "waterfall",
    "windbarb",
    "wordcloud",
    "xrange",
]
classes instance-attribute
classes = ''
event_propagation instance-attribute
event_propagation = True
highcharts_colors class-attribute
highcharts_colors = [
    "#7cb5ec",
    "#434348",
    "#90ed7d",
    "#f7a35c",
    "#8085e9",
    "#f15c80",
    "#e4d354",
    "#2b908f",
    "#f45b5b",
    "#91e8e1",
]
options instance-attribute
options = Dict()
pages instance-attribute
pages = {}
show instance-attribute
show = True
stock instance-attribute
stock = False
style instance-attribute
style = ''
tooltip_debounce instance-attribute
tooltip_debounce = 100
tooltip_fixed instance-attribute
tooltip_fixed = False
tooltip_x instance-attribute
tooltip_x = -40
tooltip_y instance-attribute
tooltip_y = 40
update_animation instance-attribute
update_animation = True
update_create instance-attribute
update_create = False
use_cache instance-attribute
use_cache = True
vue_type class-attribute
vue_type = 'chart'

Functions

__init__
__init__(**kwargs)
__repr__
__repr__()
__setattr__
__setattr__(key, value)
add_to
add_to(*args)
add_to_page
add_to_page(wp: WebPage)
chart_update async
chart_update(update_dict, websocket)
convert_object_to_dict
convert_object_to_dict()
draw_crosshair async
draw_crosshair(point_list, websocket)

point_list is list of dictionaries whose keys are: 'id': the chart id 'series': the series index 'point': the point index Values are all integers

Example

{'id': chart_id, 'series': msg.series_index, 'point': msg.point_index}

load_json
load_json(options_string)
load_json_from_file
load_json_from_file(file_name)
react
react(data)
select_point async
select_point(point_list, websocket)

point_list is list of of dictionaries whose keys are: 'id': the chart id 'series': the series index 'point': the point index Values are all integers

Example

{'id': chart_id, 'series': msg.series_index, 'point': msg.point_index}

tooltip_update async
tooltip_update(tooltip, websocket)

HighStock

Bases: HighCharts

Attributes

stock instance-attribute
stock = True

Functions

__init__
__init__(**kwargs)

Histogram

Bases: HighCharts

Functions

__init__
__init__(data, **kwargs)

Matplotlib

Bases: Div

Attributes

figure instance-attribute
figure = plt.gcf()

Functions

__init__
__init__(**kwargs)
set_figure
set_figure(fig = None)

Pie

Bases: HighCharts

Attributes

labels instance-attribute
labels = []

Functions

__init__
__init__(data, **kwargs)

PieSemiCircle

Bases: HighCharts

Attributes

labels instance-attribute
labels = []

Functions

__init__
__init__(data, **kwargs)

PlotlyChart

Bases: Div

Attributes

chart instance-attribute
chart = None
chart_dict instance-attribute
chart_dict = {}
config instance-attribute
config = {}
use_cache instance-attribute
use_cache = False
vue_type class-attribute
vue_type = 'plotlyjp'

Functions

__init__
__init__(**kwargs)
convert_object_to_dict
convert_object_to_dict()

PyDeck

Bases: Div

Attributes

deck instance-attribute
deck = None
use_cache instance-attribute
use_cache = False
vue_type class-attribute
vue_type = 'deckgl'

Functions

__init__
__init__(**kwargs)
convert_object_to_dict
convert_object_to_dict()

PyDeckFrame

Bases: Iframe

Attributes

deck instance-attribute
deck = None
srcdoc instance-attribute
srcdoc = None
transition_duration instance-attribute
transition_duration = 0.1
view_delay instance-attribute
view_delay = 0
vue_type class-attribute
vue_type = 'iframejp'

Functions

__init__
__init__(**kwargs)
convert_object_to_dict
convert_object_to_dict()

Scatter

Bases: HighCharts

Functions

__init__
__init__(x, y, **kwargs)

Functions

make_pairs_list

make_pairs_list(x_data, y_data)

Last update: September 28, 2022
Created: September 28, 2022