Commit 094e4d06 authored by Leigh B Stoller's avatar Leigh B Stoller

Couple of tweaks/fixes to new cluster graphs.

parent 50479625
.d3-tip {
line-height: 1;
font-weight: bold;
padding: 12px;
background: rgba(0, 0, 0, 0.8);
color: #fff;
border-radius: 2px;
pointer-events: none;
}
/* 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%;
}
<div style="font-family:'Fira Sans'"> <div style="font-family:'Fira Sans'">
<link href='https://fonts.googleapis.com/css?family=Fira+Sans' <link href='https://fonts.googleapis.com/css?family=Fira+Sans'
rel='stylesheet' type='text/css'></link> rel='stylesheet' type='text/css'></link>
<link rel="stylesheet" href="cluster-graphs/basic-tooltip.css"></link> <link href='css/basic-tooltip.css'
rel='stylesheet' type='text/css'></link>
<!-- Big div to contain the two graphs --> <!-- Big div to contain the two graphs -->
<div style="margin:auto; width: 1000px"> <div style="margin:auto; width: 1000px">
<!-- Nested divs to make it easy to center both the title and the graph --> <!-- Nested divs to make it easy to center both the title and the graph -->
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment