GraphChartCss Module

class epyk.core.html.graph.GraphChartCss.ChartCss(page: PageModel, width, height, html_code, options, profile)
add_dataset(data: Union[str, JsDataModel, float, dict, list, bool], label: str, colors: Optional[List[str]] = None, opacity: Optional[float] = None, kind: Optional[str] = None)

Add a new Dataset to the chart list of Datasets.

Usage:

Related Pages:

Parameters:
  • data – The list of points (float)

  • label – The list of points (float)

  • colors – Optional. The color for this series. Default the global definition

  • opacity – Optional. The opacity level for the content

dataset(i: Optional[int] = None) Optional[list]

The data property of a ChartJs chart.

Related Pages:

Parameters:

i – Optional. The series index according to the y_columns

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[str])

Set the chart labels.

Parameters:

values – The different values for the x-axis

property options: ChartCssOptions

Set the ChartCss options.

Related Pages:

class epyk.core.html.graph.GraphChartCss.ChartCssBar(page: PageModel, width, height, html_code, options, profile)
class epyk.core.html.graph.GraphChartCss.ChartCssBarArea(page: PageModel, width, height, html_code, options, profile)
class epyk.core.html.graph.GraphChartCss.ChartCssBarStacked(page: PageModel, width, height, html_code, options, profile)
class epyk.core.css.styles.attributes.CssInline(component: Optional[HtmlModel] = None, page: Optional[PageModel] = None)
important(attrs: Optional[list] = None)

If attrs is not defined all the attributes will be important.

Parameters:

attrs (list) – The Css Python property to be changed.

to_class(class_name: str)

The CSS class object.

Parameters:

class_name (str) – The class name.

to_dict(copy: bool = False)

Returns the underlying CSS attributes. This is the internal object and not a copy by default.

Parameters:

copy (bool) – Optional. Specify if a copy must be returned.