tvjsx / trading-vue-js

💹 Hackable charting lib for traders. You can draw literally ANYTHING on top of candlestick charts. [Not Maintained]
https://tvjsx.github.io/trading-vue-demo/
MIT License
2.07k stars 628 forks source link

Chart won't show candles with 1m interval data #290

Closed Aldhanekaa closed 1 year ago

Aldhanekaa commented 1 year ago

Hi, so, I do know there is example of 1 m interval chart in one of tests in this repo (The TimeFrames.vue,) however when I tried my own data, the chart won't show up.

I even tried with very small data, but still, the chart won't show up. Here's the data (I put it inside ohlvc key in datacube object);

    [1672441740000, 1.0724, 1.0725, 1.0723, 1.0725, 1.0724],
    [1672441680000, 1.0724, 1.0725, 1.0723, 1.0725, 1.0724],
    [1672441620000, 1.0722, 1.0723, 1.0722, 1.0722, 1.0722],
    [1672441560000, 1.0721, 1.0723, 1.0721, 1.0723, 1.0722]
Aldhanekaa commented 1 year ago

Idk why did this can occur, even theres no error. The chart perfectly shows up, but the candles doesn't show up

Screenshot 2023-01-02 at 14 49 07
Aldhanekaa commented 1 year ago

it turns out, the [] data array I place it inside "ohlvc" instead of "ohlcv"