tvjsx/trading-vue-js

Chart won't show candles with 1m interval data

Aldhanekaa opened this issue · 2 comments

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]

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

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