{"size": 5194, "ext": "js", "max_stars_repo_path": "docs/static/js/pages-ucharts-basic-column-column-scroll.ceefd572.js", "max_stars_repo_name": "algate/HammerUI", "max_stars_repo_stars_event_min_datetime": "2019-12-21T18:39:05.000Z", "max_stars_repo_stars_event_max_datetime": "2020-06-05T02:13:34.000Z", "max_issues_repo_path": "docs/static/js/pages-ucharts-basic-column-column-scroll.ceefd572.js", "max_issues_repo_name": "algate/HammerUI", "max_issues_repo_issues_event_min_datetime": "2020-10-30T06:50:27.000Z", "max_issues_repo_issues_event_max_datetime": "2020-10-30T06:50:27.000Z", "max_forks_repo_path": "docs/static/js/pages-ucharts-basic-column-column-scroll.ceefd572.js", "max_forks_repo_name": "algate/HammerUI", "max_forks_repo_forks_event_min_datetime": "2020-02-15T13:42:24.000Z", "max_forks_repo_forks_event_max_datetime": "2020-06-05T02:13:36.000Z"}
{"max_stars_count": 4, "max_issues_count": 1, "max_forks_count": 2, "avg_line_length": 5194.0, "max_line_length": 5194, "alphanum_fraction": 0.679245283}
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-ucharts-basic-column-column-scroll"],{"257c":function(n,t,i){"use strict";i.r(t);var a=i("db5a"),e=i("3d28");for(var o in e)"default"!==o&&function(n){i.d(t,n,(function(){return e[n]}))}(o);i("6922");var s=i("2877"),u=Object(s["a"])(e["default"],a["a"],a["b"],!1,null,"32e201db",null);t["default"]=u.exports},"3d28":function(n,t,i){"use strict";i.r(t);var a=i("fcc9"),e=i.n(a);for(var o in a)"default"!==o&&function(n){i.d(t,n,(function(){return a[n]}))}(o);t["default"]=e.a},6922:function(n,t,i){"use strict";var a=i("9905"),e=i.n(a);e.a},"6c65":function(n,t,i){"use strict";var a=i("4ea4"),e=a(i("7618"));n.exports={error:"",isJSON:function(n){if("string"==typeof n)try{var t=JSON.parse(n);return!("object"!=(0,e.default)(t)||!t)}catch(i){return console.log("error："+n+"!!!"+i),!1}},isNumber:function(n){var t=/^-?[1-9][0-9]?.?[0-9]*$/;return t.test(n)}}},9905:function(n,t,i){var a=i("e775");"string"===typeof a&&(a=[[n.i,a,""]]),a.locals&&(n.exports=a.locals);var e=i("4f06").default;e("c20b6cdc",a,!0,{sourceMap:!1,shadowMode:!1})},db5a:function(n,t,i){"use strict";var a=function(){var n=this,t=n.$createElement,i=n._self._c||t;return i("v-uni-view",{staticClass:"qiun-columns"},[i("v-uni-view",{staticClass:"qiun-bg-white qiun-title-bar qiun-common-mt"},[i("v-uni-view",{staticClass:"qiun-title-dot-light"},[n._v("页面地址")])],1),i("v-uni-view",{staticClass:"qiun-bg-white qiun-padding"},[i("v-uni-text",[n._v("pages/basic/column/column-scroll")])],1),i("v-uni-view",{staticClass:"qiun-bg-white qiun-title-bar qiun-common-mt"},[i("v-uni-view",{staticClass:"qiun-title-dot-light"},[n._v("柱状图带滚动条")])],1),i("v-uni-view",{staticClass:"qiun-charts"},[i("v-uni-canvas",{staticClass:"charts",attrs:{"canvas-id":"canvasColumn",id:"canvasColumn","disable-scroll":"true"},on:{touchstart:function(t){t=n.$handleEvent(t),n.touchColumn(t)},touchmove:function(t){t=n.$handleEvent(t),n.moveColumn(t)},touchend:function(t){t=n.$handleEvent(t),n.touchEndColumn(t)}}})],1),i("v-uni-view",{staticClass:"qiun-bg-white qiun-title-bar qiun-common-mt"},[i("v-uni-view",{staticClass:"qiun-title-dot-light"},[n._v("标准数据格式")])],1),i("v-uni-view",{staticClass:"qiun-bg-white qiun-padding"},[i("v-uni-textarea",{staticClass:"qiun-textarea",attrs:{"auto-height":"true",maxlength:"-1"},model:{value:n.textarea,callback:function(t){n.textarea=t},expression:"textarea"}})],1),i("v-uni-view",{staticClass:"qiun-text-tips"},[n._v("Tips：修改后点击更新图表")]),i("v-uni-button",{staticClass:"qiun-button",on:{click:function(t){t=n.$handleEvent(t),n.changeData()}}},[n._v("更新图表")])],1)},e=[];i.d(t,"a",(function(){return a})),i.d(t,"b",(function(){return e}))},e775:function(n,t,i){t=n.exports=i("24fb")(!1),t.push([n.i,"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/*样式的width和height一定要与定义的cWidth和cHeight相对应*/.qiun-charts[data-v-32e201db]{width:%?750?%;height:%?500?%;background-color:#fff}.charts[data-v-32e201db]{width:%?750?%;height:%?500?%;background-color:#fff}",""])},fcc9:function(n,t,i){"use strict";var a=i("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var e,o=a(i("af1e")),s=i("6c65"),u=null,c={data:function(){return{cWidth:"",cHeight:"",pixelRatio:1,textarea:""}},onLoad:function(){e=this,this.cWidth=uni.upx2px(750),this.cHeight=uni.upx2px(500),this.getServerData()},methods:{getServerData:function(){uni.request({url:"https://www.ucharts.cn/data.json",data:{},success:function(n){console.log(n.data.data);var t={categories:[],series:[]};t.categories=n.data.data.LineA.categories,t.series=n.data.data.LineA.series,e.textarea=JSON.stringify(n.data.data.LineA),e.showColumn("canvasColumn",t)},fail:function(){e.tips="网络错误，小程序端请检查合法域名"}})},showColumn:function(n,t){u=new o.default({$this:e,canvasId:n,type:"column",fontSize:11,padding:[5,15,15,15],legend:{show:!0,position:"top",float:"center",itemGap:30,padding:5,margin:5,borderWidth:1},dataLabel:!0,dataPointShape:!0,background:"#FFFFFF",pixelRatio:e.pixelRatio,categories:t.categories,series:t.series,animation:!0,enableScroll:!0,xAxis:{disableGrid:!1,type:"grid",gridType:"dash",itemCount:4,scrollShow:!0,scrollAlign:"left"},yAxis:{gridType:"dash",splitNumber:4,min:10,max:180,format:function(n){return n.toFixed(0)+"元"}},width:e.cWidth*e.pixelRatio,height:e.cHeight*e.pixelRatio,extra:{column:{type:"group",width:e.cWidth*e.pixelRatio*.45/t.categories.length}}})},touchColumn:function(n){u.scrollStart(n)},moveColumn:function(n){u.scroll(n)},touchEndColumn:function(n){u.scrollEnd(n),u.touchLegend(n,{animation:!0}),u.showToolTip(n,{format:function(n,t){return t+" "+n.name+":"+n.data}})},changeData:function(){if((0,s.isJSON)(e.textarea)){var n=JSON.parse(e.textarea);u.updateData({series:n.series,categories:n.categories,scrollPosition:"right",animation:!1})}else uni.showToast({title:"数据格式错误",image:"../../../static/images/alert-warning.png"})}}};t.default=c}}]);