webpackJsonp([6],{U047:function(t,n,a){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var e=a("vwbq"),i={name:"LineChart",data:function(){return{data:[99,71,78,25,36,92],line:""}},created:function(){},mounted:function(){this.calculatePath()},methods:{getScales:function(){var t=e.l().range([0,430]),n=e.k().range([210,0]);return e.d().scale(t),e.c().scale(n),t.domain(e.f(this.data,function(t,n){return n})),n.domain([0,e.h(this.data,function(t){return t})]),{x:t,y:n}},calculatePath:function(){var t=this.getScales(),n=e.g().x(function(n,a){return t.x(a)}).y(function(n){return t.y(n)});this.line=n(this.data)}}},r={render:function(){var t=this.$createElement,n=this._self._c||t;return n("div",{attrs:{id:"line-chart"}},[n("h3",{staticClass:"title"},[this._v("折线图")]),this._v(" "),n("svg",{attrs:{width:"500",height:"270"}},[n("g",{staticStyle:{transform:"translate(0, 10px)"}},[n("path",{attrs:{d:this.line}})])])])},staticRenderFns:[]};var s=a("VU/8")(i,r,!1,function(t){a("qLUU")},"data-v-72e2aa88",null);n.default=s.exports},qLUU:function(t,n){}});
//# sourceMappingURL=6.1b5c2033188e851284d2.js.map