LineChart
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)]
line_chart = LineChart(
title="Max vs Denis",
series=[{"name": "Max", "data": s1}, {"name": "Denis", "data": s2}],
xaxis_type="category",
)
Parameters
Parameters
Type
Description
title

series

zoom

stroke_curve

stroke_width

markers_size

data_labels

xaxis_type

xaxis_title

yaxis_title

yaxis_autorescale

height

decimalsInFloat

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

Last updated