Skip to content

Commit

Permalink
#64 Code fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pantunes committed May 4, 2020
1 parent 36b7cb4 commit cd5060b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion xtcryptosignals/client/templates/ticker/ticker.html
Original file line number Diff line number Diff line change
Expand Up @@ -188,9 +188,10 @@
if (json['symbol'] !== coin_or_token + reference_pair) {
return;
}
let _id = `chart_${coin_or_token}10s`
for (let i in charts) {
let shift = false
if (json['frequency'] === "10s" && charts[i].series[0].data.length > 30) {
if (_id === charts[i].renderTo.id && charts[i].series[0].data.length > 30) {
shift = true
}
charts[i].series[0].addPoint([json['created_on_ts'], json['price']], false, shift);
Expand Down

0 comments on commit cd5060b

Please sign in to comment.