ApexChart
Introduction
Function signature
size1 = 10
x1 = list(range(size1))
y1 = np.random.randint(low=10, high=148, size=size1).tolist()
s1 = [{"x": x, "y": y} for x, y in zip(x1, y1)]
size2 = 30
x2 = list(range(size2))
y2 = np.random.randint(low=0, high=300, size=size2).tolist()
s2 = [{"x": x, "y": y} for x, y in zip(x2, y2)]
apexchart = Apexchart(
series=[{"name": "Max", "data": s1}, {"name": "Denis", "data": s2}],
options={
"chart": {"type": "line", "zoom": {"enabled": False}},
"dataLabels": {"enabled": False},
"stroke": {"curve": "smooth", "width": 2},
"title": {"text": "Product Trends by Month", "align": "left"},
"grid": {"row": {"colors": ["#f3f3f3", "transparent"], "opacity": 0.5}},
"xaxis": {"type": "category"},
},
type="line",
)
Parameters
Parameters
Type
Description
series
options
type



height
sly_options
Methods and attributes
Attributes and Methods
Description
Mini App Example
Import libraries
Init API client
Prepare series for chart
Initialize Apexchart widget
Apexchart widgetCreate app layout
Create app using layout
Add functions to control widgets from python code

Last updated