hoffstadt / hoffstadt/DearPyGui
CandleStick snap
- 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

```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
Assessment
This issue has not been assessed yet.