Skip to content

Commit

Permalink
feat(featmat): change estylese
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed May 6, 2020
1 parent a68335b commit 757064a
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,21 @@ export class LedgeHeatmapComponent implements OnInit, AfterViewInit {
const seriesData = this.buildSeriesData(JSON.parse(JSON.stringify(treeData)));
return {
title: {
top: 30,
left: 'center',
name: treeData.header[0]
},
tooltip: {
position: 'top'
visualMap: {
min: 0,
max: 100,
calculable: true,
orient: 'vertical',
left: '90%',
top: '35%',
inRange: {
color: ['white', '#5b8e5b']
}
},
animation: false,
grid: {
height: '50%',
top: '10%'
Expand All @@ -60,13 +68,15 @@ export class LedgeHeatmapComponent implements OnInit, AfterViewInit {
type: 'heatmap',
data: seriesData,
label: {
show: true
show: true,
color: '#000',
formatter: (data) => data.value[2] + '%',
},
emphasis: {
itemStyle: {
shadowBlur: 10,
shadowColor: 'rgba(0, 0, 0, 0.5)'
}
shadowBlur: 5,
shadowColor: 'white'
},
}
}]
};
Expand Down
1 change: 1 addition & 0 deletions src/styles/_color.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ $black: #111;
$white: #fff;
$purple: #7753df;
$background-color: #f9f9f9;
$green: #5b8e5b;

$error-color: red;

Expand Down

0 comments on commit 757064a

Please sign in to comment.