Skip to content

Commit

Permalink
[SIP-5] Refactor and update heatmap (apache#5704)
Browse files Browse the repository at this point in the history
* Extract slice and formData

* Define data shape

* update style

* organize imports

* fix heatmap axis labels

* add new line

* adjust indent
  • Loading branch information
kristw authored and williaster committed Aug 28, 2018
1 parent cfab3c9 commit 080dab6
Show file tree
Hide file tree
Showing 2 changed files with 198 additions and 76 deletions.
19 changes: 14 additions & 5 deletions superset/assets/src/visualizations/heatmap.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,24 @@
}

.heatmap .axis text {
font: 10px sans-serif;
font: 12px sans-serif;
text-rendering: optimizeLegibility;
fill: #555;
}

.heatmap .background-rect {
stroke: #ddd;
fill-opacity: 0;
pointer-events: all;
}

.heatmap .axis path,
.heatmap .axis line {
fill: none;
stroke: #000;
stroke: #ddd;
shape-rendering: crispEdges;
}

.heatmap svg {
}

.heatmap canvas, .heatmap img {
image-rendering: optimizeSpeed; /* Older versions of FF */
image-rendering: -moz-crisp-edges; /* FF 6.0+ */
Expand All @@ -41,3 +45,8 @@
.heatmap .legendCells .cell:last-child text {
opacity: 1;
}

.dashboard .heatmap .axis text {
font-size: 10px;
opacity: .75;
}
Loading

0 comments on commit 080dab6

Please sign in to comment.