View .gitignore
.idea
bower_components
View d3.js
!function() {
var d3 = {
version: "3.4.4"
};
if (!Date.now) Date.now = function() {
return +new Date();
};
var d3_arraySlice = [].slice, d3_array = function(list) {
return d3_arraySlice.call(list);
};
View canvas.js
var width = 500,
height = 70,
font = '18px serif'
function getRetinaRatio() {
var devicePixelRatio = window.devicePixelRatio || 1
var c = document.createElement('canvas').getContext('2d')
var backingStoreRatio = [
c.webkitBackingStorePixelRatio,
c.mozBackingStorePixelRatio,
View 18b0ebf01dac2d1e5922.iml
<?xml version="1.0" encoding="UTF-8"?>
<module type="WEB_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>
We couldn’t find that file to show.
We couldn’t find that file to show.
We couldn’t find that file to show.
View index.html
<html>
<body>
<script type='text/javascript' src='http://d3js.org/d3.v3.min.js'></script>
<script>
array = [
{ 'a': 1, 'b': 2 },
{ 'a': 42, 'b': 7 },
{ 'a': 15, 'b': 3 },
{ 'a': 32, 'b': 8 },
{ 'a': 26, 'b': 15 },