hoffstadt / hoffstadt/DearPyGui

CandleStick snap

Open
#1,500 0 comments 2 reactions 0 assignees View on GitHub
state: pending type: bug
Dominant language
C++
Stars
15.6k
Forks
783
PR merge metrics
No merged PRs in 30d

Description

Version: 1.1.3

## My Issue/Question

to be honest I don't know exactly if it is an issue or it needs some configurations. when i plot candles everything done as well, but there is something annoying me, which is when i hove over the candles the tool tips snaps to days instead of every time frame "4h in this example"?

## Expected behavior
so How do I make the tool tips snaps on every candle instead of the beginning of every day ?

## Screenshots/Video
![plot](https://user-images.githubusercontent.com/16564491/147118036-79f34e5b-e235-47b2-bc4f-7af3370e70bf.gif)

```python
# my plot code
def symbol_callback(sender, symbol):
df = gd.get_klines(symbol, "4h")
dates = df['date'].values.tolist()
opens = list(df['open'])
highs = list(df['high'])
lows = list(df['low'])
closes = list(df['close'])
with dpg.plot(label=f"{symbol} | 4H", height=400, width=-1,parent="main"):
dpg.add_plot_legend()
xaxis = dpg.add_plot_axis(dpg.mvXAxis, label="Time", time=True)
with dpg.plot_axis(dpg.mvYAxis):
dpg.add_candle_series(dates, opens, closes, lows, highs, label=f"{symbol}")
dpg.fit_axis_data(dpg.top_container_stack())
```

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.