Skip to main content

Plot / Path

Make a path plot.

from h2o_wave import site, data, ui

page = site['/demo']

page.add('example', ui.plot_card(
box='1 1 5 5',
title='Path',
data=data('price performance', 10, rows=[
(0.1, 0.6),
(0.2, 0.5),
(0.3, 0.3),
(0.4, 0.2),
(0.4, 0.5),
(0.2, 0.2),
(0.8, 0.5),
(0.3, 0.3),
(0.2, 0.4),
(0.1, 0.0),
]),
plot=ui.plot([ui.mark(type='path', x='=price', y='=performance')])
))

page.save()

Tags:  plot