|
|
@ -44,7 +44,6 @@ const config = { |
|
|
|
} |
|
|
|
} |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
id: 'marketCap', |
|
|
|
id: 'marketCap', |
|
|
|
display: false, |
|
|
|
|
|
|
|
gridLines: { |
|
|
|
gridLines: { |
|
|
|
display: false, |
|
|
|
display: false, |
|
|
|
drawBorder: false |
|
|
|
drawBorder: false |
|
|
@ -56,8 +55,7 @@ const config = { |
|
|
|
} |
|
|
|
} |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
id: 'numTransactions', |
|
|
|
id: 'numTransactions', |
|
|
|
display: false, |
|
|
|
position: "right", |
|
|
|
position: 'right', |
|
|
|
|
|
|
|
gridLines: { |
|
|
|
gridLines: { |
|
|
|
display: false, |
|
|
|
display: false, |
|
|
|
drawBorder: false |
|
|
|
drawBorder: false |
|
|
@ -111,6 +109,9 @@ class MarketHistoryChart { |
|
|
|
}, |
|
|
|
}, |
|
|
|
{}) |
|
|
|
{}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var priceActivated = true |
|
|
|
|
|
|
|
var marketCapActivated = true |
|
|
|
|
|
|
|
|
|
|
|
this.price = { |
|
|
|
this.price = { |
|
|
|
label: window.localized['Price'], |
|
|
|
label: window.localized['Price'], |
|
|
|
yAxisID: 'price', |
|
|
|
yAxisID: 'price', |
|
|
@ -124,6 +125,7 @@ class MarketHistoryChart { |
|
|
|
if (dataConfig.market === undefined || dataConfig.market.indexOf('price') === -1) { |
|
|
|
if (dataConfig.market === undefined || dataConfig.market.indexOf('price') === -1) { |
|
|
|
this.price.hidden = true |
|
|
|
this.price.hidden = true |
|
|
|
axes['price'].display = false |
|
|
|
axes['price'].display = false |
|
|
|
|
|
|
|
priceActivated = false |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
this.marketCap = { |
|
|
|
this.marketCap = { |
|
|
@ -139,6 +141,7 @@ class MarketHistoryChart { |
|
|
|
if (dataConfig.market === undefined || dataConfig.market.indexOf('market_cap') === -1) { |
|
|
|
if (dataConfig.market === undefined || dataConfig.market.indexOf('market_cap') === -1) { |
|
|
|
this.marketCap.hidden = true |
|
|
|
this.marketCap.hidden = true |
|
|
|
axes['marketCap'].display = false |
|
|
|
axes['marketCap'].display = false |
|
|
|
|
|
|
|
marketCapActivated = false |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
this.numTransactions = { |
|
|
|
this.numTransactions = { |
|
|
@ -151,9 +154,14 @@ class MarketHistoryChart { |
|
|
|
borderColor: sassVariables.dashboardLineColorTransactions, |
|
|
|
borderColor: sassVariables.dashboardLineColorTransactions, |
|
|
|
lineTension: 0 |
|
|
|
lineTension: 0 |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (dataConfig.transactions === undefined || dataConfig.transactions.indexOf('transactions_per_day') === -1) { |
|
|
|
if (dataConfig.transactions === undefined || dataConfig.transactions.indexOf('transactions_per_day') === -1) { |
|
|
|
this.numTransactions.hidden = true |
|
|
|
this.numTransactions.hidden = true |
|
|
|
axes['numTransactions'].display = false |
|
|
|
axes['numTransactions'].display = false |
|
|
|
|
|
|
|
} else if (!priceActivated && !marketCapActivated) { |
|
|
|
|
|
|
|
axes['numTransactions'].position = 'left' |
|
|
|
|
|
|
|
this.numTransactions.backgroundColor = sassVariables.dashboardLineColorPrice |
|
|
|
|
|
|
|
this.numTransactions.borderColor = sassVariables.dashboardLineColorPrice |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
this.availableSupply = availableSupply |
|
|
|
this.availableSupply = availableSupply |
|
|
|