forked from apache/superset
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add navigation, zoom to treemap (apache#396)
* add navigation, zoom to treemap * don't use stale form data
- Loading branch information
1 parent
c0fb9ee
commit a2f2ad8
Showing
4 changed files
with
283 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,43 @@ | ||
.node { | ||
border: solid 1px white; | ||
font: 10px sans-serif; | ||
line-height: 12px; | ||
overflow: hidden; | ||
position: absolute; | ||
text-indent: 2px; | ||
padding: 0px; /* form div giving top 1px */ | ||
box-sizing: content-box; /* otherwise inheriting border-box */ | ||
} | ||
|
||
.treemap-container { | ||
position: relative; | ||
margin: auto; | ||
text { | ||
pointer-events: none; | ||
} | ||
|
||
.grandparent text { | ||
font-weight: bold; | ||
} | ||
|
||
rect { | ||
fill: none; | ||
stroke: #fff; | ||
} | ||
|
||
rect.parent, | ||
.grandparent rect { | ||
stroke-width: 2px; | ||
} | ||
|
||
rect.parent { | ||
pointer-events: none; | ||
} | ||
|
||
.grandparent rect { | ||
fill: #eee; | ||
} | ||
|
||
.grandparent:hover rect { | ||
fill: #aaa; | ||
} | ||
|
||
.children rect.parent, | ||
.grandparent rect { | ||
cursor: pointer; | ||
} | ||
|
||
.children rect.parent { | ||
fill: #bbb; | ||
fill-opacity: .5; | ||
} | ||
|
||
.children:hover rect.child { | ||
fill: #bbb; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.