Я следую инструкциям здесь https://lightningchart.com/python-chart ... /chart-xy/
Вот мой код:
Код: Выделить всё
import lightningchart as lc
import random
# Initialize the chart
chart = lc.ChartXY(
theme=lc.Themes.Light,
title='Chart XY',
)
# Add point series to the chart
point_series = chart.add_point_series()
point_series.set_point_color((0, 255, 255, 128))
legend = chart.add_legend()
lines_amount = 3
for i in range(lines_amount):
# Add line series to the chart
line_series = chart.add_line_series()
legend.add(line_series)
y = 0
# Add data to series
for x in range(1000):
y += (random.random() * 2) - 1
line_series.add(x=x, y=y)
if random.random() > 0.75:
point_series.add(x=x, y=y + random.uniform(-10, 10))
chart.open()

Какой API мне нужно использовать, чтобы записи легенды не перекрывались?
Подробнее здесь: https://stackoverflow.com/questions/798 ... es-overlap
Мобильная версия