GraphVis Module

class epyk.core.html.graph.GraphVis.Chart(page, width, height, html_code, options, profile)
build(data: Optional[Union[str, JsDataModel, float, dict, list, bool]] = None, options: Optional[Union[bool, dict]] = None, profile: Optional[Union[bool, dict]] = False, component_id: Optional[str] = None, stop_state: bool = True, dataflows: Optional[List[dict]] = None) str
Parameters:
  • data – String. A String corresponding to a JavaScript object.

  • options – Dictionary. Optional. Specific Python options available for this component.

  • profile – Boolean | Dictionary. Optional. A flag to set the component performance storage.

  • component_id – String. Optional.

  • stop_state

  • dataflows

property chartId: str

Return the Javascript variable of the chart.

define(options: Optional[Union[str, JsDataModel, float, dict, list, bool]] = None, dataflows: Optional[List[dict]] = None) str

Not yet defined for this chart

property js: VisGraph2D

Return all the Javascript functions defined in the framework. This is an entry point to the full Javascript ecosystem.

Returns:

A Javascript object

class epyk.core.html.graph.GraphVis.Chart3D(page, width, height, html_code, options, profile)
add_item(x, y, z, group=0, style=None)
Parameters:
  • x

  • y

  • z

  • group

  • style

add_items(records)
Parameters:

records

build(data=None, options=None, profile=False, component_id=None, stop_state: bool = True, dataflows: Optional[List[dict]] = None)
Parameters:
  • data

  • options

  • profile

  • component_id – String. Optional.

  • stop_state

  • dataflows

property js: VisGraph3D

Return all the Javascript functions defined in the framework. This is an entry point to the full Javascript ecosystem.

property options: Options3D

Property to the component options. Options can either impact the Python side or the Javascript builder.

Python can pass some options to the JavaScript layer.

Usage:

class epyk.core.html.graph.GraphVis.Chart3DBar(page, width, height, html_code, options, profile)
class epyk.core.html.graph.GraphVis.Chart3DLine(page, width, height, html_code, options, profile)
class epyk.core.html.graph.GraphVis.Chart3DScatter(page, width, height, html_code, options, profile)
class epyk.core.html.graph.GraphVis.ChartBar(page, width, height, html_code, options, profile)
class epyk.core.html.graph.GraphVis.ChartLine(page, width, height, html_code, options, profile)
add_item(x, y, group, label=None, end=None)
Parameters:
  • x

  • y

  • group

  • label

  • end

add_items(records)
Parameters:

records

property js: VisGraph2D

Return all the Javascript functions defined in the framework. THis is an entry point to the full Javascript ecosystem.

Returns:

A Javascript object

class epyk.core.html.graph.GraphVis.ChartNetwork(page, width, height, html_code, options, profile)
add_edge(from_Id, to_Id, title=None, relation=None)
Parameters:
  • from_Id

  • to_Id

  • title

  • relation

add_node(label, node_id=None, group=0)
Parameters:
  • label

  • node_id

  • group

property js: VisNetwork

Return all the Javascript functions defined in the framework. This is an entry point to the full Javascript ecosystem.

Returns:

A Javascript object.

class epyk.core.html.graph.GraphVis.ChartScatter(page, width, height, html_code, options, profile)
class epyk.core.html.graph.GraphVis.ChartTimeline(page, width, height, html_code, options, profile)
addClassName(name, css, css_hover=None)
Parameters:
  • name

  • css

  • css_hover

add_items(records)
Parameters:

records

property js: VisTimeline

Return all the Javascript functions defined in the framework. This is an entry point to the full Javascript ecosystem.

Returns:

A Javascript object

property options: OptionsTimeline

Property to the component options. Options can either impact the Python side or the Javascript builder.

Python can pass some options to the JavaScript layer.

Usage:

setGroups(groups)

Add group labels to the timeline.

Parameters:

groups

property style: ClassVisTimeline

Property to the CSS Style of the component.