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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="Content-type" content="text/html; charset=utf-8"> | |
<title>Style My Bar</title> | |
<script type="text/javascript" src="bar.js"></script> | |
<link rel="stylesheet" type="text/css" href="bar2.css" /> | |
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js?2.1.3"></script> |
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
var x_scale = d3.scale.linear().domain([0,100]).range([0,500]); | |
var h=20 | |
//x-origin | |
var o=30 | |
//y-origin | |
var l=30 | |
var color = d3.scale.category20() | |
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
var x_scale = d3.scale.linear().domain([0,100]).range([0,500]); | |
var h=20; | |
//x-origin | |
var o=30; | |
//y-origin | |
var l=30; | |
var color = d3.scale.category20(); | |
var array1 = [16,25,9,12,38]; |
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
var x_scale = d3.scale.linear().domain([0,100]).range([0,500]); | |
var h=20; | |
//x-origin | |
var o=0; | |
//y-origin | |
var l=30; | |
var color = d3.scale.category20(); | |
var array1 = [16,25,9,12,38]; |
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
var x_scale = d3.scale.linear().domain([0,100]).range([0,500]); | |
//bar height | |
var h=30; | |
//x-origin | |
var o=20; | |
//y-origin | |
var l=30; | |
var color = d3.scale.category20(); |
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
var x_scale = d3.scale.linear().domain([0,100]).range([0,500]); | |
//bar height | |
var h=30; | |
//x-origin | |
var ox=30; | |
//y-origin | |
var oy=30; | |
var color = d3.scale.category10(); |
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
var txt; | |
var n = 120; | |
var tfactor = -3.5*-10; | |
var afactor = 53.2175*16; | |
var sfactor = 101; | |
var colors = ["#22EC19", "#E41599"]; | |
var size = 1.27814; | |
var percent = 0.9364; |
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
var txt; | |
var n = 120; | |
var tfactor = -3.5*-10; | |
var afactor = 53.2175*16; | |
var sfactor = 101; | |
var colors = ["#2232A5", "#690083"]; | |
var size = 1.27814; | |
var percent = 0.9364; |
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
var txt; | |
var n = 67; | |
var tfactor = -18.6425*-71; | |
var afactor = 43.3475*16; | |
var sfactor = 3; | |
var colors = ["#8B3333", "#000000"]; | |
var size = 3.27814; | |
var percent = 0.81804; |
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
var txt; | |
var n = 67; | |
var tfactor = -18.6425*-71; | |
var afactor = 43.3475*16; | |
var sfactor = 3; | |
var colors = ["#8B3333", "#49143C"]; | |
var size = 3.27814; | |
var percent = 0.81804; |
OlderNewer