webpackJsonp([18],{YyhB:function(t,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=o("WR23"),e=o.n(r),a=o("ifQC"),i={data:function(){return{chart:null}},computed:{isCollapse:function(){return this.$store.state.sys.isCollapse}},watch:{isCollapse:{handler:function(){var t=this;setTimeout(function(){t.chart.forceFit()},400)}}},methods:{_chart:function(){var t=[{country:"中国",population:131744},{country:"印度",population:104970},{country:"美国",population:29034},{country:"印尼",population:23489},{country:"巴西",population:18203}],n=(new a.DataSet).createView().source(t);n.source(t).transform({type:"sort",callback:function(t,n){return t.population-n.population}}),this.chart=new e.a.Chart({container:"_bar",forceFit:!0,height:100,padding:[0,0,0,0]}),this.chart.source(n),this.chart.axis("country",{label:{offset:12}}),this.chart.coord().transpose(),this.chart.interval().position("country*population"),this.chart.render()}},mounted:function(){this._chart()}},c={render:function(){var t=this.$createElement;return(this._self._c||t)("div",{attrs:{id:"_bar"}})},staticRenderFns:[]},s=o("VU/8")(i,c,!1,null,null,null);n.default=s.exports}});