var fundFlowChart = { chart:null, container : "", allFlowStatus : 0, init : function(_data){ var self = this; var data = self.decode(_data); $((self.container=='')?'#fundFlowChartContainer':'#'+self.container).highcharts(self.getJSON(data), function(chart){ }); }, decode : function(_data){ var data = []; for(var i=0;i<_data.length;i++){ data[i] = []; data[i][0] = Highcharts.dateFormat('%d/%m',_data[i].ts*1000); data[i][1] = _data[i].flow*1; } return data.reverse(); }, getJSON : function(_data){ var self = this; return { chart: { type: 'column', marginRight: 75, marginTop: 15, marginBottom: 30, }, title: { text: null }, legend:{ enabled:false, }, xAxis: { tickLength:0, gridLineWidth: 0, lineWidth: 0, categories: [_data[0][0],_data[1][0],_data[2][0],_data[3][0],_data[4][0],], labels:{ autoRotation: false, style:{"color": "#000"}, } }, yAxis: { opposite: true, title: { text: self.labels[lang]["title"], rotation:(lang=="en")?90:0, offset: (lang=="en")?58:0, x: -5, y:(lang=="en")?-10:-30, }, labels:{ style:{"color": "#000"}, formatter: function () { return addcomma(this.value); }, }, tickPixelInterval:25, }, plotOptions: { series: { dataLabels: { enabled: true, crop: false, overflow: 'none', formatter: function(){ if (this.point.nullValue){ return self.labels[lang]["na"]; }else{ return addcomma((this.y).toFixed(0)); } }, style: { color : "#333333", "fontWeight": "normal", } } }, }, tooltip: { enabled:false, }, series: [{ data: _data, color: "#0072ce", negativeColor: "#d91e19", }], exporting: { enabled: false } }; }, labels : { tc :{ 'title' : "金




︶", }, sc :{ 'title' : "金




︶", }, en :{ 'title' : "Moneyflow (millions)", }, }, }