Skip to content

Instantly share code, notes, and snippets.

@bobmonteverde
bobmonteverde / d3.css
Created March 18, 2012 09:18
A Simple D3 Line chart with Legend and Tooltips
/********************
* TOOLTIP CSS
*/
.nvtooltip {
position: absolute;
background-color: rgba(255,255,255,1);
padding: 10px;
border: 1px solid #ddd;
@bobmonteverde
bobmonteverde / index.html
Created March 18, 2012 08:59
A D3 Line chart with Legend and Tooltips
<!DOCTYPE html>
<meta charset="utf-8">
<style>
#test1 {
margin: 0;
padding: 0;
overflow: none;
}
<!DOCTYPE html>
<meta charset="utf-8">
<style>
text {
font: 12px sans-serif;
}
.axis path {
fill: none;
<!DOCTYPE html>
<meta charset="utf-8">
<style>
text {
font: 12px sans-serif;
}
.axis path {
fill: none;
<!DOCTYPE html>
<meta charset="utf-8">
<style>
text {
font: 12px sans-serif;
}
.axis path {
fill: none;
<!DOCTYPE html>
<meta charset="utf-8">
<style>
text {
font: 12px sans-serif;
}
.axis path {
fill: none;
<!DOCTYPE html>
<meta charset="utf-8">
<style>
text {
font: 12px sans-serif;
}
.axis path {
fill: none;
<!DOCTYPE html>
<meta charset="utf-8">
<style>
.axis text {
font: 10px sans-serif;
}
.axis path, .axis line {
<!DOCTYPE html>
<meta charset="utf-8">
<style>
.axis text {
font: 10px sans-serif;
}
.axis path, .axis line {
<!DOCTYPE html>
<meta charset="utf-8">
<style>
.axis text {
font: 10px sans-serif;
}
.axis path, .axis line {