Sha256: 536efc53a4a7ae1e2dc5793891c6dc8d9c2bd1b4571d6b6478a277c270f8aca1
Contents?: true
Size: 897 Bytes
Versions: 1
Compression:
Stored size: 897 Bytes
Contents
@DashboardApp.directive 'populationWindow', (populationDrilldownService) -> link: (scope, el, attr) -> # code begin margin = top: 5 right: 10 bottom: 5 left: 10 box = height: h = scope.height || 200 width: w = scope.width || 900 inner_height: h - margin.top - margin.bottom inner_width: w - margin.right - margin.left populationDrilldownService .getPopulation(genNum: 0 , (resp) -> scope.pop = resp.data.population , (resp) -> scope.error = resp ) svg = d3.select(el[0]).append('svg:svg') .attr('width', box.width).attr('height', box.height) .append('g') .attr("transform", "translate(" + margin.left + "," + margin.top + ")") # code end restrict: "E" scope: width: '=' height: '=' popSource: '='
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rubyneat_dashboard-0.4.1 | app/js/dashboard/directives/population_window.coffee |