Skip to content

Commit

Permalink
WIP Chain Compare
Browse files Browse the repository at this point in the history
  • Loading branch information
manishiwa committed Feb 2, 2024
1 parent 0affe54 commit 25cb183
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions components/layout/ChainChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1061,7 +1061,7 @@ export default function ChainChart({
// remove the series we don't need
chartComponents.current[i].series.forEach((s) => {
if (seriesToRemove.includes(s)) {
s.remove(true);
s.remove(false);
}
});

Expand Down Expand Up @@ -1098,9 +1098,9 @@ export default function ChainChart({
...series.options,
custom: { types: seriesTypes, metric: key },
},
true,
false,
);
series.setData(seriesData, true);
series.setData(seriesData, false);
} else {
// if series does not exist, add it
chartComponents.current[i].addSeries(
Expand Down Expand Up @@ -1157,7 +1157,7 @@ export default function ChainChart({
AllChainsByKeys[item.chain_id].colors[theme ?? "dark"][0],
borderWidth: 1,
},
true,
false,
);
}
});
Expand Down

0 comments on commit 25cb183

Please sign in to comment.