Files
main/projects/fangjia-bkoff/src/main/webapp/rentPriceUpdate/loadSQRData.ftl
T
2022-08-09 14:59:17 +08:00

49 lines
1.8 KiB
Plaintext

<div id="container"></div>
<div id="chartLegend" class="leg" style="display: none;">
<input id="vt1" name="vts" value="1" type="checkbox"/><label for="vt1">一个月</label>&nbsp;
<input id="vt2" name="vts" value="2" type="checkbox"/><label for="vt2">季度</label>&nbsp;
<input id="vt3" name="vts" value="3" type="checkbox"/><label for="vt3">半年</label>&nbsp;
</div>
<script type="text/javascript">
Highcharts.setOptions({
global: {
useUTC: false
}
});
$('#container').highcharts({
chart: {
type: 'spline'
},
title: {
text: '${cityDisplay!}<#if stype=="1">数量(一个月)<#elseif stype=="2">比例(一个月)<#elseif stype=="3">数量(季度)<#elseif stype=="4">比例(季度)<#elseif stype=="5">数量(半年)<#elseif stype=="6">比例(半年)<#elseif stype=="7">数量(一年)<#elseif stype=="8">比例(一年)</#if>情况展示'
},
subtitle: {
text: '${t_util.formatDate(t_util.parseDate(sdateStart?string, 'yyyyMMdd'), 'yyyy年MM月dd日')} - ${t_util.formatDate(t_util.parseDate(sdateEnd?string, 'yyyyMMdd'), 'yyyy年MM月dd日')}'
},
xAxis: {
type: 'datetime',
dateTimeLabelFormats: { // don't display the dummy year
month: '%Y-%m-%d',
year: '%Y'
}
},
yAxis: {
title: {
text: '值'
},
min: 0
},
tooltip: {
formatter: function() {
return '<b>'+ this.series.name +'</b><br>'+ Highcharts.dateFormat('%Y-%m-%d', this.x) +' : '+ this.y;
}
},
// legend : {
// enabled : false
// },
series: ${series!}
});
</script>