Skip to main content

Plot / Interval / Transpose

Make a bar plot.

from h2o_wave import site, data, ui

page = site['/demo']

page.add('example', ui.plot_card(
box='1 1 4 5',
title='Interval range transposed',
data=data('profession max min', 5, rows=[
('medicine', 110000, 23000),
('fire fighting', 120000, 18000),
('pedagogy', 125000, 24000),
('psychology', 130000, 22500),
('computer science', 151000, 36000),
]),
plot=ui.plot([ui.mark(type='interval', x='=max', x0='=min', y='=profession')]),
))

page.save()

Tags:  intervalplot