hot.html
2.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
{echo:JS::import('form')}
{echo:JS::import('highcharts')}
{widget:name=count action=cal}
<div class="tools_bar clearfix">
<form action="{url:/count/hot}" method="post">
<span class="fl">时间:<input name="s_time" type="text" value="{$s_time}" id="datepick" class="middle" readonly="readonly"></span><a href="javascript:tools_submit();" id="condition" class="icon-search" style=""> 查询</a>
</form>
</div>
<div id="container"></div>
<script>
$(function () {
$('#container').highcharts({
chart:{
type:'areaspline'
},
title: {
text: '{$s_time}最热销【三款】统计报表'
},
xAxis: [{
categories: [{$month}],
labels: {
rotation: -45,
align: 'right',
style: {
fontSize: '13px',
fontFamily: 'Verdana, sans-serif'
}
}
}],
yAxis: {
min: 0,
title: {
text: '销售额 (元)'
}
},
tooltip: {
shared: true
},
legend: {
layout: 'vertical',
align: 'left',
x: 80,
verticalAlign: 'top',
y: 35,
floating: true,
backgroundColor: '#FFFFFF'
},
series: [{if:$data}{set:$last = count($data);$num=1;}{list:items=$data}{
name: '{$parse_goods[$key]}',
data: [{$item}],
tooltip: {
headerFormat: '{point.key}<br/>',
valueSuffix: ' 元'
},dataLabels: {
enabled: true
}
}{if:$num++<$last},{/if}{/list}
{else:}
{name:'无产品',data:[{$nodata}]}
{/if}
]
});
});
</script>