ScatterChart
Introduction
Function signature
x1 = list(range(10))
y1 = [random.randint(6, 15) for _ in range(10)]
x2 = list(range(30))
y2 = [random.randint(0, 30) for _ in range(30)]
scatter_chart = ScatterChart("My Scatter Chart")
scatter_chart.add_series("Data 1", x1, y1)
scatter_chart.add_series("Data 2", x2, y2)size1 = 10
xy = np.random.normal(15, 6, (size1, 2)).tolist()
s1 = [{"x": x, "y": y} for x, y in xy]
size2 = 30
x2 = list(range(size2))
y2 = np.random.uniform(low=0, high=30, size=size2).tolist()
s2 = [{"x": x, "y": y} for x, y in zip(x2, y2)]
scatter_chart = ScatterChart(
title="My Scatter Chart",
series=[{"name": "Data 1", "data": s1}, {"name": "Data 2", "data": s2}],
xaxis_type="numeric",
)
Parameters
Parameters
Type
Description
title
series

zoom

markers_size

data_labels

xaxis_type

xaxis_title

yaxis_title

yaxis_autorescale
height

decimalsInFloat

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