CompChartFrappe Interface
- class epyk.interfaces.graphs.CompChartsFrappe.CompChartFrappe(ui)
- bar(record=None, y_columns: Optional[list] = None, x_axis: Optional[str] = None, profile: Optional[Union[bool, dict]] = None, width: Optional[Union[tuple, int, str]] = (100, '%'), height: Optional[Union[tuple, int, str]] = (330, 'px'), options: Optional[Union[bool, dict]] = None, html_code: Optional[str] = None)
Create a bar chart from Frappe Chart libraries.
Usage:
c = page.ui.charts.frappe.bar(y_columns=["Value"], x_axis="Year", height=(500, "px")) text = page.ui.input("Italy") slider = page.ui.sliders.range(minimum=1990, maximum=2020) page.ui.button("Click").click([ page.js.d3.csv(data_urls.DEMO_COUNTRY).filterCol("Country Name", text.dom.content).cast(["Year", "Value"]). filterCol("Year", slider.dom.min_select, ">").filterCol("Year", slider.dom.max_select, "<").get( [#"data = data.slice(1)", c.build(pk.events.data)]) ])
- Parameters:
record –
y_columns –
x_axis –
profile – Optional. A flag to set the component performance storage
width – Optional. The width of the component in the page, default (100, ‘%’)
height – Optional. The height of the component in the page, default (330, “px”)
options – Optional. Specific Python options available for this component
html_code – Optional. An identifier for this component (on both Python and Javascript side)
- donut(record=None, y_columns: Optional[list] = None, x_axis: Optional[str] = None, profile: Optional[Union[bool, dict]] = None, width: Optional[Union[tuple, int, str]] = (100, '%'), height: Optional[Union[tuple, int, str]] = (330, 'px'), options: Optional[Union[bool, dict]] = None, html_code: Optional[str] = None)
- Parameters:
record –
y_columns –
x_axis –
profile – Optional. A flag to set the component performance storage
width – Optional. The width of the component in the page, default (100, ‘%’)
height – Optional. The height of the component in the page, default (330, “px”)
options – Optional. Specific Python options available for this component
html_code – Optional. An identifier for this component (on both Python and Javascript side)
- heatmap(record=None, y_columns: Optional[list] = None, x_axis: Optional[str] = None, profile: Optional[Union[bool, dict]] = None, width: Optional[Union[tuple, int, str]] = (100, '%'), height: Optional[Union[tuple, int, str]] = (330, 'px'), options: Optional[Union[bool, dict]] = None, html_code: Optional[str] = None)
- Parameters:
record –
y_columns –
x_axis –
profile – Optional. A flag to set the component performance storage
width – Optional. The width of the component in the page, default (100, ‘%’)
height – Optional. The height of the component in the page, default (330, “px”)
options – Optional. Specific Python options available for this component
html_code – Optional. An identifier for this component (on both Python and Javascript side)
- line(record=None, y_columns: Optional[list] = None, x_axis: Optional[str] = None, profile: Optional[Union[bool, dict]] = None, width: Optional[Union[tuple, int, str]] = (100, '%'), height: Optional[Union[tuple, int, str]] = (330, 'px'), options: Optional[Union[bool, dict]] = None, html_code: Optional[str] = None)
Create a line chart from Frappe Chart libraries.
Usage:
c = page.ui.charts.frappe.line(y_columns=["Value"], x_axis="Year", height=(500, "px")) text = page.ui.input("Italy") slider = page.ui.sliders.range(minimum=1990, maximum=2020) page.ui.button("Click").click([ page.js.d3.csv(data_urls.DEMO_COUNTRY).filterCol("Country Name", text.dom.content).cast(["Year", "Value"]). filterCol("Year", slider.dom.min_select, ">").filterCol("Year", slider.dom.max_select, "<").get( [#"data = data.slice(1)", c.build(pk.events.data)]) ])
- Parameters:
record –
y_columns –
x_axis –
profile – Optional. A flag to set the component performance storage
width – Optional. The width of the component in the page, default (100, ‘%’)
height – Optional. The height of the component in the page, default (330, “px”)
options – Optional. Specific Python options available for this component
html_code – Optional. An identifier for this component (on both Python and Javascript side)
- percentage(record=None, y_columns: Optional[list] = None, x_axis: Optional[str] = None, profile: Optional[Union[bool, dict]] = None, width: Optional[Union[tuple, int, str]] = (100, '%'), height: Optional[Union[tuple, int, str]] = (330, 'px'), options: Optional[Union[bool, dict]] = None, html_code: Optional[str] = None)
Usage:
c = page.ui.charts.frappe.percentage(y_columns=["Value"], x_axis="Year", height=(500, "px")) text = page.ui.input("Italy") slider = page.ui.sliders.range(minimum=1990, maximum=2020) page.ui.button("Click").click([ page.js.fetch(data_urls.DEMO_COUNTRY).csvtoRecords().filterCol( "Country Name", text.dom.content).cast(["Year", "Value"]). filterCol("Year", slider.dom.min_select, ">").filterCol("Year", slider.dom.max_select, "<"). get([ c.build(pk.events.data), ]) ])
- Parameters:
record –
y_columns –
x_axis –
profile – Optional. A flag to set the component performance storage
width – Optional. The width of the component in the page, default (100, ‘%’)
height – Optional. The height of the component in the page, default (330, “px”)
options – Optional. Specific Python options available for this component
html_code – Optional. An identifier for this component (on both Python and Javascript side)
- pie(record=None, y_columns: Optional[list] = None, x_axis: Optional[str] = None, profile: Optional[Union[bool, dict]] = None, width: Optional[Union[tuple, int, str]] = (100, '%'), height: Optional[Union[tuple, int, str]] = (330, 'px'), options: Optional[Union[bool, dict]] = None, html_code: Optional[str] = None)
- Parameters:
record –
y_columns –
x_axis –
profile – Optional. A flag to set the component performance storage
width – Optional. The width of the component in the page, default (100, ‘%’)
height – Optional. The height of the component in the page, default (330, “px”)
options – Optional. Specific Python options available for this component
html_code – Optional. An identifier for this component (on both Python and Javascript side)
- plot(record=None, y=None, x=None, kind: str = 'line', profile: Optional[Union[bool, dict]] = None, width: Optional[Union[tuple, int, str]] = (100, '%'), height: Optional[Union[tuple, int, str]] = (330, 'px'), options: Optional[Union[bool, dict]] = None, html_code: Optional[str] = None)
- Tags:
- Categories:
Usage:
Related Pages:
- Parameters:
record – Optional. The list of dictionaries with the input data
y – Optional. The columns corresponding to keys in the dictionaries in the record
x – Optional. The column corresponding to a key in the dictionaries in the record
kind – Optional. The chart type
profile – Optional. A flag to set the component performance storage
width – Optional. The width of the component in the page, default (100, ‘%’)
height – Optional. The height of the component in the page, default (330, “px”)
options – Optional. Specific Python options available for this component
html_code – Optional. An identifier for this component (on both Python and Javascript side)