An attempt to define a configurable Backbone.js view class for bar charts. Based on a previous experiment.
This experiment is used both as an exercise on modularity and as an investigation of the possibility of leveraging Backbone for defining more reusable modules.
xxxxxxxxxx
<html>
<head>
<meta charset="utf-8">
<title>Basic Charts (Backbone)</title>
<link type="text/css" href="index.css" rel="stylesheet"/>
<!-- dependencies -->
<script src="https://d3js.org/d3.v3.min.js"></script>
<script src="https://underscorejs.org/underscore-min.js"></script>
<script src="https://backbonejs.org/backbone-min.js"></script>
<script src="backbone.d3view.js"></script>
<script src="views.js"></script>
<link type="text/css" href="views.css" rel="stylesheet"/>
<script src="models.js"></script>
</head>
<body>
<svg id="chart"></svg>
<div id="side">
<svg id="chart2"></svg>
<svg id="chart3"></svg>
</div>
<script src="index.js"></script>
</body>
</html>
Modified http://d3js.org/d3.v3.min.js to a secure url
Modified http://underscorejs.org/underscore-min.js to a secure url
Modified http://backbonejs.org/backbone-min.js to a secure url
https://d3js.org/d3.v3.min.js
https://underscorejs.org/underscore-min.js
https://backbonejs.org/backbone-min.js