This commit is contained in:
2024-01-29 18:34:54 +08:00
parent 12ecb5309e
commit 7f67a750c8
27 changed files with 1217 additions and 404 deletions
@@ -51,7 +51,7 @@
<f:Panel ID="Panel4" CssClass="blockpanel" runat="server" EnableCollapse="false" MarginTop="10px"
BodyPadding="10px" ShowBorder="true" ShowHeader="false">
<Items>
<f:TabStrip ID="TabStrip1" CssClass="f-tabstrip-theme-simple" Height="700px" ShowBorder="true"
<f:TabStrip ID="TabStrip1" CssClass="f-tabstrip-theme-simple" Height="700px" ShowBorder="true"
TabPosition="Top" MarginBottom="5px" EnableTabCloseMenu="false" runat="server">
<Tabs>
<f:Tab ID="Tab2" Title="按类别" BodyPadding="5px" Layout="Fit" IconFont="Bookmark" runat="server"
@@ -66,9 +66,23 @@
</div>
</f:ContentPanel>
<f:ContentPanel ShowHeader="false" runat="server" ID="ContentPanel1" Margin="0 0 0 0 " BoxFlex="1" >
</Items>
</f:Panel>
</Items>
</f:Tab>
<f:Tab ID="Tab1" Title="按类别饼图" BodyPadding="5px" Layout="Fit" IconFont="Bookmark" runat="server"
TitleToolTip="按类别统计">
<Items>
<f:Panel ID="Panel1" IsFluid="true" runat="server" Height="350px" ShowBorder="true" EnableCollapse="false"
Layout="HBox" ShowHeader="false" >
<Items>
<f:ContentPanel ShowHeader="false" runat="server" ID="ContentPanel3" Margin="0 0 0 0 " BoxFlex="1" >
<div id="divPie" style="height: 700px;">
<div id="divPie" style="height: 700px;width:1000px;" >
</div>
@@ -76,6 +90,7 @@
</Items>
</f:Panel>
</Items>
</f:Tab>
</Tabs>
</f:TabStrip>
@@ -84,7 +99,7 @@
</form>
</body>
<script language="javascript">
function rendChart(legend, xAxis, series) {
option = {
tooltip: {
@@ -141,7 +156,7 @@
function pie( title, xArr, data) {
debugger
// 基于准备好的dom,初始化echarts实例
var myChartpie = echarts.init(document.getElementById("divPie"))
// 指定图表的配置项和数据
@@ -205,7 +220,8 @@
}
$(document).ready(function () {
setTimeout(function () {
setTimeout(function () {
$("#divPie").width ( $("#divAccidentTime").width());
pie('', <%=xPieAxis%>, <%=seriesPie%>);
rendChart(<%=legend%>,<%=xAxis%>,<%=series%>);