首页数据只显示本年份修改

This commit is contained in:
2024-01-03 14:12:27 +08:00
parent e8877811ef
commit f590c95d94
6 changed files with 291 additions and 130 deletions
@@ -35,7 +35,9 @@
<f:RadioButtonList ID="rblState" runat="server" Label="分析类型" LabelWidth="80px" Width="250px"
AutoPostBack="true" OnSelectedIndexChanged="drpChartType_SelectedIndexChanged">
<f:RadioItem Value="0" Selected="true" Text="按责任单位" />
<f:RadioItem Value="2" Text="检查人" />
<f:RadioItem Value="1" Text="按检查项" />
</f:RadioButtonList>
<f:Button ID="BtnAnalyse" Text="统计" Icon="ChartPie" runat="server" OnClick="BtnAnalyse_Click">
</f:Button>
@@ -115,22 +117,22 @@
series: series
};
if (xAxis.length > 5) {
option.dataZoom = [{
type: 'slider',
show: true,
startValue: 0,
endValue: 4,
height: '10',
backgroundColor: '#aed0ea',
fillerColor: '#107f8b',
bottom: '10%',
zoomLock: true,
moveOnMouseWheel: true,
brushSelect: true,
showDetail: false,
}]
}
//if (xAxis.length > 5) {
// option.dataZoom = [{
// type: 'slider',
// show: true,
// startValue: 0,
// endValue: 4,
// height: '10',
// backgroundColor: '#aed0ea',
// fillerColor: '#107f8b',
// bottom: '10%',
// zoomLock: true,
// moveOnMouseWheel: true,
// brushSelect: true,
// showDetail: false,
// }]
//}
var myChart = echarts.init(document.getElementById("divAccidentTime"));
myChart.setOption(option);