D3
OG
Old school D3 from simpler times
All examples
By author
By category
About
huangy22
Full window
Github gist
horizontal barplot
Built with
blockbuilder.org
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Average/Median Monthly Income and Working Time in Preceding Four Months by Education, 2009</title> <script src="https://d3js.org/d3.v3.js"></script> <style> body { margin:0;position:fixed;top:0;right:0;bottom:0;left:0; } svg {margin-left:auto; margin-right:auto; display: block;} line {stroke:#ddd;shape-rendering: crispEdges; } .axis {shape-rendering: crispEdges;} .axis line{stroke:#000; stroke-width:1;} .axis path{stroke:#000; stroke-width:1;} .domain {fill:none; stroke:#000; stroke-width:1.5;} .axis .minor{fill:none; stroke-width:1;} .axis text{font:sans-serif; font-size: 12pt; font-weight: bold;} </style> </head> <body> <div id="fig1"></div> <script src="horizontal_barplot.js"></script> </body> </html>
https://d3js.org/d3.v3.js