reverse charts data, remove weekly button

pull/237/head
Tim Pechersky 2021-09-08 19:39:02 +02:00
rodzic 643d30e723
commit a511af242a
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -22,7 +22,7 @@ const NFTChart = ({ timeRange, keyPosition, keyTotal }) => {
let diff =
keyTotal && Number(block[keyTotal]) - Number(block[keyPosition]);
let date = moment(block.crawled_at).format(`HH`);
let date = moment(block.crawled_at).format(`HH:MM`);
//group by days if not hour key
if (idx < 23) {
retval.push({
@ -127,7 +127,7 @@ const NFTChart = ({ timeRange, keyPosition, keyTotal }) => {
<ResponsiveBarCanvas
colors={["#fe9a67", "#7a7fbc"]}
animate={true}
data={plotData}
data={plotData.reverse()}
valueScale={{
type: "linear",
}}