Skip to main content

Plot / Interval / Polar

Make a rose plot (a bar plot in polar coordinates).

from synth import FakeCategoricalSeriesfrom h2o_wave import site, data, ui
page = site['/demo']
n = 24f = FakeCategoricalSeries()v = page.add('example', ui.plot_card(    box='1 1 4 5',    title='Interval, polar',    data=data('product price', n),    plot=ui.plot([ui.mark(coord='polar', type='interval', x='=product', y='=price', y_min=0)])))v.data = [(c, x) for c, x, dx in [f.next() for _ in range(n)]]
page.save()

Tags: โ€‚interval โ€‚plot