holoviz / holoviz/hvplot

Bar and ohlc charts are not linked

Open
#945 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
1.4k
Forks
124
Avg merge
1d 18h
Merged PRs (30d)
1

Description

#### ALL software version info
hvplot 0.8.1
python 3.10.6
vscode 1.71.2
linux

#### Description of expected behavior and the observed behavior

Bar and OHLC charts should be linked. I see them not linked and it looks ohlc breaks horizontal linkage of other bar charts, while vertical linkage still works.

#### Complete, minimal, self-contained example code that reproduces the issue

```
n = 30

dfj = pandas.Series(numpy.random.randint(10, 50, n))
dfk = pandas.Series(numpy.random.randint(10, 50, n))

dfl = pandas.DataFrame(dict(
open=numpy.random.randint(30, 40, n),
high=numpy.random.randint(40, 50, n),
low=numpy.random.randint(10, 30, n),
close=numpy.random.randint(30, 40, n),
))

plotj = dfj.hvplot.bar(height=100, width=300, xaxis=None, hover=False)
plotk = dfk.hvplot.bar(height=100, width=300, xaxis=None, hover=False)
plotl = dfl.hvplot.ohlc(height=100, width=300, xaxis=None, hover=False)

layout = (plotj + plotk)
display(layout)

layout = (plotj + plotk + plotl)
display(layout)

layout = (plotl + plotj + plotk)
display(layout)
```

#### Stack traceback and/or browser JavaScript console output

Nothing is logged in vscode's output tab.

#### Screenshots or screencasts of the bug in action

https://user-images.githubusercontent.com/785140/196003636-166b64f3-af1b-4474-ab7f-730c2a42da5a.mp4

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.