Skip to content

Commit

Permalink
Merge pull request #91 from asasn/patch-1
Browse files Browse the repository at this point in the history
visualMap.pieces#checkIfDarkMode
  • Loading branch information
Gk0Wk authored Sep 21, 2023
2 parents e254da0 + 6680ee9 commit 8ac11c9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/echarts/addons/Gk0Wk/GitHubHeatMap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,10 +159,10 @@ const GitHubHeatMapAddon: IScriptAddon<any> = {
pieces: [
// 设置分段范围
{ lte: 0, color: checkIfDarkMode() ? '#161B22' : '#EBEDF0' },
{ gt: 0, lte: 3, color: '#0E4429' },
{ gt: 3, lte: 7, color: '#006D32' },
{ gt: 7, lte: 15, color: '#26A641' },
{ gt: 15, color: '#39D353' },
{ gt: 0, lte: 3, color: checkIfDarkMode() ? '#0E4429' : '#39D353' },
{ gt: 3, lte: 7, color: checkIfDarkMode() ? '#006D32' : '#26A641' },
{ gt: 7, lte: 15, color: checkIfDarkMode() ? '#26A641' : '#006D32' },
{ gt: 15, color: checkIfDarkMode() ? '#39D353' : '#0E4429' },
],
},
calendar: {
Expand Down

0 comments on commit 8ac11c9

Please sign in to comment.