mirror of
https://github.com/FlipsideCrypto/flipside-js.git
synced 2026-02-06 10:48:11 +00:00
Update requests.
This commit is contained in:
parent
eab5a73255
commit
6d7b4d2c88
19
index.html
19
index.html
@ -70,6 +70,23 @@
|
||||
|
||||
flipside.chart("chart", {
|
||||
title: "Flipside 25 - Overall Industry Health",
|
||||
chart: {
|
||||
type: "area"
|
||||
},
|
||||
plotOptions: {
|
||||
area: {
|
||||
threshold: null,
|
||||
fillColor: {
|
||||
linearGradient: {
|
||||
x1: 0,
|
||||
y1: 0,
|
||||
x2: 0,
|
||||
y2: 1
|
||||
},
|
||||
stops: [[0, "#9EC9FE"], [1, "rgba(255, 255, 255, 0)"]]
|
||||
}
|
||||
}
|
||||
},
|
||||
series: [
|
||||
{
|
||||
name: "FLIP25",
|
||||
@ -79,7 +96,7 @@
|
||||
yAxis: 1
|
||||
}
|
||||
],
|
||||
colors: ["#81A0F1"],
|
||||
colors: ["#9EC9FE"],
|
||||
rangeSelector: {
|
||||
enabled: true
|
||||
}
|
||||
|
||||
@ -17,7 +17,7 @@ export default class API {
|
||||
url: string,
|
||||
params = {},
|
||||
retryCount = 0,
|
||||
retryMax = 15
|
||||
retryMax = 2
|
||||
): Promise<any> {
|
||||
let res;
|
||||
try {
|
||||
|
||||
@ -96,7 +96,7 @@ class Spectrum extends Component<Props, State> {
|
||||
if (!success || !data) {
|
||||
setTimeout(() => {
|
||||
return this._getData();
|
||||
}, 2000);
|
||||
}, 45000);
|
||||
return success;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user