Skip to content

Commit

Permalink
Merge pull request #42 from mantlenetworkio/albert/theme
Browse files Browse the repository at this point in the history
#23 UI: update chart color
  • Loading branch information
Jaycelv authored Dec 5, 2022
2 parents 294e120 + b65c308 commit 80af527
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions apps/block_scout_web/assets/js/lib/history_chart.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ function getMarketCapChartColor () {
}

function xAxe () {
let color;
let color
if (localStorage.getItem('current-color-mode') === 'dark') {
color = '#F0F1F2';
color = '#F0F1F2'
} else {
color = ' #41474D';
color = '#41474D'
}
return {
grid,
Expand All @@ -56,7 +56,7 @@ function xAxe () {
stepSize: 14
},
ticks: {
color: color
color
}
}
}
Expand All @@ -73,12 +73,12 @@ const legend = {
function formatValue (val) {
return `${numeral(val).format('0,0')}`
}
let color;
if (localStorage.getItem('current-color-mode') === 'dark') {
color = '#F0F1F2';
} else {
color = ' #41474D';
}
let color
if (localStorage.getItem('current-color-mode') === 'dark') {
color = '#F0F1F2'
} else {
color = ' #41474D'
}
const config = {
type: 'line',
responsive: true,
Expand Down Expand Up @@ -122,7 +122,7 @@ const config = {
beginAtZero: true,
callback: (value, _index, _values) => formatValue(value),
maxTicksLimit: 4,
color: sassVariables.dashboardBannerChartAxisFontColor
color
}
}
},
Expand Down

0 comments on commit 80af527

Please sign in to comment.