webpackJsonp([7],{ifcW:function(t,e){},lrRO:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("ittK"),a=n("vwbq"),i={name:"Histogram",data:function(){return{respName:[],respStar:[]}},created:function(){var t=this,e=JSON.parse(sessionStorage.getItem("user"));t.$fetch(r.a.USER_INFO+"/"+e+"/repos").then(function(e){""!=e&&"undefined"!=e&&e.forEach(function(e,n){t.respName.push(e.name),t.respStar.push(e.stargazers_count),console.log(e.name+"--\x3e"+e.stargazers_count+"\n")})}).then(function(){t.$nextTick(function(){var e=600,n=t.respStar,r=a.m("#histogram .main").append("svg").attr("width",e).attr("height",300);r.selectAll("rect").data(n).enter().append("rect").attr("x",function(t,r){return r*(e/n.length)}).attr("y",function(t){return 300-4*t}).attr("width",e/n.length-3).attr("height",function(t,e){return 4*t}).attr("fill",function(t){return"rgb(0, 0, "+10*t+")"}),r.selectAll("text").data(n).enter().append("text").text(function(t){return t}).attr("x",function(t,r){return r*(e/n.length)+(e/n.length-3)/2}).attr("y",function(t){return 300-4*t+14}).attr("font-family","sans-serif").attr("font-size","11px").attr("fill","#fff").attr("text-anchor","middle")})})}},s={render:function(){this.$createElement;this._self._c;return this._m(0)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{attrs:{id:"histogram"}},[e("div",{staticClass:"main"})])}]};var c=n("VU/8")(i,s,!1,function(t){n("ifcW")},"data-v-5172f631",null);e.default=c.exports}});
//# sourceMappingURL=7.ca591ec6b40acd79cb65.js.map