Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[big number] various improvements (#2912)
* [big number] various improvements * dynamic number of X axis ticks based on width to prevent label overlap * corrected overflow on the x axis * improved tooltips (precise arrow and visible data point circle on hover) * Fixing tooltips in heatmap viz
- Loading branch information
1 parent
0e6f754
commit 24a2f5b
Showing
7 changed files
with
107 additions
and
111 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
/* from d3-tip */ | ||
.d3-tip { | ||
line-height: 1; | ||
padding: 12px; | ||
background: rgba(0, 0, 0, 0.8); | ||
color: #fff; | ||
border-radius: 2px; | ||
pointer-events: none; | ||
z-index: 1000; | ||
} | ||
|
||
/* Creates a small triangle extender for the tooltip */ | ||
.d3-tip:after { | ||
box-sizing: border-box; | ||
display: inline; | ||
font-size: 10px; | ||
width: 100%; | ||
line-height: 1; | ||
color: rgba(0, 0, 0, 0.8); | ||
position: absolute; | ||
pointer-events: none; | ||
} | ||
|
||
/* Northward tooltips */ | ||
.d3-tip.n:after { | ||
content: "\25BC"; | ||
margin: -1px 0 0 0; | ||
top: 100%; | ||
left: 0; | ||
text-align: center; | ||
} | ||
|
||
/* Eastward tooltips */ | ||
.d3-tip.e:after { | ||
content: "\25C0"; | ||
margin: -4px 0 0 0; | ||
top: 50%; | ||
left: -8px; | ||
} | ||
|
||
/* Southward tooltips */ | ||
.d3-tip.s:after { | ||
content: "\25B2"; | ||
margin: 0 0 1px 0; | ||
top: -8px; | ||
left: 0; | ||
text-align: center; | ||
} | ||
|
||
/* Westward tooltips */ | ||
.d3-tip.w:after { | ||
content: "\25B6"; | ||
margin: -4px 0 0 -1px; | ||
top: 50%; | ||
left: 100%; | ||
} |
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
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