From c20e9cbfe7466b43bfa2c0315103e112852580b3 Mon Sep 17 00:00:00 2001 From: xuhe Date: Wed, 29 Jun 2022 11:28:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=88=BF=E6=BA=90=E6=95=A3=E5=88=97=E5=9B=BE?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E7=89=A9=E4=B8=9A=E7=B1=BB=E5=9E=8B=E6=A0=87?= =?UTF-8?q?=E8=AF=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../webapp/avgPriceUpdate/districtDetail.ftl | 52 ++++++++++++++++--- 1 file changed, 46 insertions(+), 6 deletions(-) diff --git a/projects/fangjia-bkoff/src/main/webapp/avgPriceUpdate/districtDetail.ftl b/projects/fangjia-bkoff/src/main/webapp/avgPriceUpdate/districtDetail.ftl index 9ade46e39..ac49fc289 100644 --- a/projects/fangjia-bkoff/src/main/webapp/avgPriceUpdate/districtDetail.ftl +++ b/projects/fangjia-bkoff/src/main/webapp/avgPriceUpdate/districtDetail.ftl @@ -724,19 +724,59 @@ }); var series = new Array(); series[0] = { - name:"房源散列图", + name:"房源散列图-普通住宅", data:new Array() //color:"#660099" } + series[1] = { + name:"房源散列图-商住", + data:new Array(), + color:"#12990f" + } + series[2] = { + name:"房源散列图-别墅", + data:new Array(), + color:"#992632" + } + var series_arry_0 = [] + var series_arry_1 = [] + var series_arry_2 = [] $(data).each(function(i,item){ var pdate = item.pDate + ""; var ds = pdate.substring(0, 4) + '-' + pdate.substring(4, 6) + '-' + pdate.substring(6) - series[0].data.push({ - x:new Date(ds), - y:Math.round(item.totalPrice/item.area), - data:item - }) + if (item.estateType.indexOf('别墅') > -1){ + series_arry_2.push({ + x:new Date(ds), + y:Math.round(item.totalPrice/item.area), + data:item + }) + }else if((item.estateType.indexOf('商住') > -1) || (item.estateType.indexOf('公寓酒店') > -1)){ + series_arry_1.push({ + x:new Date(ds), + y:Math.round(item.totalPrice/item.area), + data:item + }) + }else{ + series_arry_0.push({ + x:new Date(ds), + y:Math.round(item.totalPrice/item.area), + data:item + }) + } + // series[0].data.push({ + // x:new Date(ds), + // y:Math.round(item.totalPrice/item.area), + // data:item + // }) + // series[1].data.push({ + // x:new Date(ds), + // y:Math.round(item.totalPrice/item.area), + // data:item + // }) }); + series[0].data = series_arry_0 + series[1].data = series_arry_1 + series[2].data = series_arry_2 $('#houseChart').highcharts({ chart: { type: 'scatter',