GraphGoogle Module
- class epyk.core.html.graph.GraphGoogle.Chart(page: PageModel, data, width, height, html_code, options, profile)
- add_dataset(data, label, colors=None, opacity=None, kind=None)
- Parameters:
data –
label –
colors –
opacity –
kind –
- build(data: Optional[Union[str, JsDataModel, float, dict, list, bool]] = None, options: Optional[Union[str, JsDataModel, float, dict, list, bool]] = None, profile: Optional[Union[bool, dict]] = None, component_id: Optional[str] = None, stop_state: bool = True, dataflows: Optional[List[dict]] = None)
- Parameters:
data –
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. A DOM component reference in the page.
stop_state – Remove the top panel for the component state (error, loading…)
- property chartId
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
- labels(values: list)
Set the chart labels.
- Parameters:
values – The label values.
- property options: OptionGoogle
Property to the series options.
All the common properties shared between all the charts. This will ensure a compatibility with the plot method.
Usage:
line = page.ui.charts.bb.bar() line.shared.x_label("x axis")
- class epyk.core.html.graph.GraphGoogle.ChartLine(page: PageModel, data, width, height, html_code, options, profile)