Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Histogram tooltip issue #1473

Closed
mtanco opened this issue Jun 3, 2022 · 1 comment · Fixed by #1486
Closed

Histogram tooltip issue #1473

mtanco opened this issue Jun 3, 2022 · 1 comment · Fixed by #1486
Assignees
Labels
bug Bug in code plot Related to plotting ui Related to UI

Comments

@mtanco
Copy link
Contributor

mtanco commented Jun 3, 2022

Wave SDK Version, OS

h2o_wave 0.22.0

Actual behavior

The low - high value is the two number concatenated together which seems strange
image

Expected behavior

Steps To Reproduce

from h2o_wave import main, app, Q, ui, data


@app('/')
async def serve(q: Q):
    q.page['example'] = ui.plot_card(
        box='1 1 7 5',
        title='Interval',
        data=data('price low high', 8, rows=[
            (4, 50, 100),
            (6, 100, 150),
            (8, 150, 200),
            (16, 350, 400),
            (18, 400, 450),
            (10, 200, 250),
            (12, 250, 300),
            (14, 300, 350),
        ]),
        plot=ui.plot([ui.mark(
            type='interval',
            y='=price', y_min=0,
            x1='=low', x2='=high',
        )])
    )
    
    await q.page.save()
@marek-mihok
Copy link
Contributor

Thanks for reporting @mtanco! It must be the bug introduced by #1330. I've just created a PR with the fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug in code plot Related to plotting ui Related to UI
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants