X Axis title name flipped in plot
- Dominant language
- Python
- Stars
- 4.3k
- Forks
- 371
- Avg merge
- 26d 1h
- Merged PRs (30d)
- 1
Description
#### Wave SDK Version
v0.21.1 & v0.24.0
#### Actual behavior
X-Axis title is flipped in the plot. This is problematic for Y-Axis title also.

#### Expected behavior
The X-Axis title is expected not to be flipped and to be placed under X-Axis.
#### Steps To Reproduce
```python
from h2o_wave import site, data, ui, main
page = site['/demo']
page.add('example', ui.form_card(
box='1 1 4 5',
title='Histogram',
items=[ui.visualization(
data=data('price low high', 8, pack=True, 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', x1='=low', x2='=high', y_min=0, x_title="x_title" * 40,
label_overlap="hide", )])
)]
))
page.save()
```
Contributor guide
Research direction
Reproduce the issue with the provided Python example using ui.plot and ui.mark, especially the long x_title value. Trace the visualization rendering entry point for axis titles and verify that X- and Y-axis titles are not flipped and that the X-axis title appears below the axis.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- data-visualization
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100