"use strict";function _defineproperty(e,t,a){return t in e?object.defineproperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function initchart(e){var i,r=echarts.init(document.getelementbyid(e)),l={dayarr:[],weekarr:[],moutharr:[]},s={api_name:"daily",token:"3bdf1f3d484a049f9576d205b8037c3a6f9a9e9cd06f4f5db656f164",params:{ts_code:"601139.sh",start_date:"20190701",end_date:formatdate(new date,"yyyymmdd")},fields:"trade_date,open,close,low,high,pre_close,change,pct_chg,vol,amount"},o="red",n="red",d="green",c="green";function y(e){var t;e=json.parse(json.stringify(e)),!1,i=function(e){for(var t=[],a=[],r=0;r