chartjs / chartjs/chartjs-chart-financial
Chart complete freeze app on drawing or zoom
- Dominant language
- JavaScript
- Stars
- 809
- Forks
- 199
- PR merge metrics
- No merged PRs in 30d
Description
Hi, it happens also with zoom plugin, so I disabled it to verify and it happens also without zoom.
Am I doing something wrong here? I get json very fast, then it freezes for at least 10s. For more data, it can freeze for minutes even!
``` this.api.getCandles(this.currencyPair, {count: 20, granularity: this.granularity}).subscribe(candleResponse => {
for (const candle of candleResponse.candles) {
console.log(candle);
const luxonDate: luxon.DateTime = luxon.DateTime.fromISO(candle.time);
this.chartLabels.push(luxonDate.toString());
this.chartData[0].data.push({
t: luxonDate.valueOf(),
o: candle.mid.o,
h: candle.mid.h,
l: candle.mid.l,
c: candle.mid.c
});
}
});```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.