Update requests.

This commit is contained in:
Jim Myers 2019-03-15 14:40:53 -04:00
parent eab5a73255
commit 6d7b4d2c88
3 changed files with 20 additions and 3 deletions

View File

@ -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
}

View File

@ -17,7 +17,7 @@ export default class API {
url: string,
params = {},
retryCount = 0,
retryMax = 15
retryMax = 2
): Promise<any> {
let res;
try {

View File

@ -96,7 +96,7 @@ class Spectrum extends Component<Props, State> {
if (!success || !data) {
setTimeout(() => {
return this._getData();
}, 2000);
}, 45000);
return success;
}