This file contains hidden or 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
| function createChart(dom, props){ | |
| var width = props.width; | |
| var height = props.height; | |
| width = width + 200; | |
| var data = props.data; | |
| var sum = data.reduce(function(memo, num){ return memo + num.count; }, 0); | |
| var chart = d3.select(dom).append('svg').attr('class', 'd3').attr('width', width).attr('height', height) | |
| .append("g") | |
| .attr("transform", "translate(" + (props.width/2) + "," + (height/2) + ")"); | |
| var outerRadius = props.width/2.2; |
This file contains hidden or 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
| /** | |
| * React Mixin for binding reactive data sources and DDP subscriptions | |
| * to the state of a component using Tracker | |
| * | |
| * Components using this mixin should implement getTrackerState and/or | |
| * ddpSubscriptions | |
| */ | |
| TrackerMixin = { | |
| getInitialState: function() { |
This file contains hidden or 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
| // A basic media query mixin that makes responsive work simple. | |
| @screen-sm-min: 481px; | |
| @screen-md-min: 768px; | |
| @screen-lg-min: 1025px; | |
| @screen-xl-min: 1281px; | |
| @screen-xs-max: (@screen-sm-min - 1); | |
| @screen-sm-max: (@screen-md-min - 1); | |
| @screen-md-max: (@screen-lg-min - 1); |
NewerOlder