Skip to content

Commit

Permalink
[SIP-5] Refactor and repair partition (#5718)
Browse files Browse the repository at this point in the history
* Extract slice and formData

* reorder functions

* fix tooltip

* remove commented code

* remove commented code and rename variables

* remove verboseMap

* rename kx, ky to zoomX, zoomY
  • Loading branch information
kristw authored and williaster committed Aug 29, 2018
1 parent 86f99b0 commit 00f2771
Show file tree
Hide file tree
Showing 2 changed files with 210 additions and 110 deletions.
21 changes: 20 additions & 1 deletion superset/assets/src/visualizations/partition.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
.partition {
position: relative;
}

.partition .chart {
display: block;
margin: auto;
Expand All @@ -18,10 +22,25 @@

.partition g text {
font-weight: bold;
pointer-events: none;
fill: rgba(0, 0, 0, 0.8);
}

.partition g:hover text {
fill: rgba(0, 0, 0, 1);
}

.partition .partition-tooltip {
position: absolute;
top: 0;
left: 0;
opacity: 0;
padding: 5px;
pointer-events: none;
background-color: rgba(255,255,255, 0.75);
border-radius: 5px;
}

.partition-tooltip td {
padding-left: 5px;
font-size: 11px;
}
Loading

0 comments on commit 00f2771

Please sign in to comment.