GraphD3 Module
- class epyk.core.html.graph.GraphD3.Script(page: PageModel, data, 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, dataflows: Optional[List[dict]] = None) str
Return the JavaScript fragment to refresh the component content.
Usage:
dt = page.ui.rich.update() page.ui.button("Update").click([dt.refresh()])
- Parameters:
data – Optional. Component data
options – Optional. Specific Python options available for this component
profile – Optional. A flag to set the component performance storage
component_id – Optional. The object reference ID
dataflows – Chain of data transformations
- colors(hex_values: List[str])
Set specific chart color codes.
- Parameters:
hex_values – Color codes.
- data(data: Union[list, dict, str])
- Parameters:
data –
- define(options: Optional[Union[str, JsDataModel, float, dict, list, bool]] = None, dataflows: Optional[List[dict]] = None) str
Not yet defined for this chart
- loader(str_frg: str)
Loader for the script.
- Parameters:
str_frg – The javascript fragments.
- property options: OptionsChart
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.
- responsive()
Make the SVG chart responsive when the window change size.
TODO: Find a way to get the update SVG data.