Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
R
report-html-template
概览
Overview
Details
Activity
Cycle Analytics
版本库
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
问题
0
Issues
0
列表
Board
标记
里程碑
合并请求
0
Merge Requests
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
Snippets
成员
Collapse sidebar
Close sidebar
活动
图像
聊天
创建新问题
作业
提交
Issue Boards
Open sidebar
frontend
report-html-template
Commits
3d8c898d
Commit
3d8c898d
authored
Jun 14, 2023
by
呼呼啦啦
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
444c1ed1
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
164 行增加
和
0 行删除
+164
-0
energy-report/index.css
+46
-0
energy-report/index.html
+118
-0
没有找到文件。
energy-report/index.css
0 → 100644
查看文件 @
3d8c898d
*
{
margin
:
0
;
padding
:
0
;
list-style
:
none
;
}
html
,
body
{
height
:
100%
;
}
.energy-wrap
{
height
:
100%
;
background-color
:
#152235
;
padding
:
0
4vw
0
4vw
;
box-sizing
:
border-box
;
}
@media
screen
and
(
max-width
:
768px
)
{
.energy-wrap
.flex
{
display
:
block
;
}
.energy-wrap
.flex
.right
{
width
:
100%
;
}
}
.flex
{
display
:
flex
;
}
.block-bg
{
background
:
rgba
(
8
,
16
,
24
,
0.27
);
}
.yongdianqushi
{
}
.echarts-box
{
width
:
100%
;
height
:
30vh
;
}
.gonglv
{
height
:
30vh
;
}
.echarts-box1
{
flex
:
1
;
height
:
30vh
;
}
.right
{
width
:
40vw
;
height
:
30vh
;
}
energy-report/index.html
0 → 100644
查看文件 @
3d8c898d
<!DOCTYPE html>
<html
lang=
"zh-CN"
>
<head>
<meta
charset=
"UTF-8"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0,maximum-scale=1.0, user-scalable=no"
/>
<title>
能耗报告
</title>
<script
src=
"https://cdn.bootcss.com/echarts/4.6.0/echarts.min.js"
></script>
<script
src=
"https://cdn.bootcss.com/jquery/3.4.1/jquery.js"
></script>
<link
rel=
"stylesheet"
href=
"./index.css"
>
</head>
<body>
<div
class=
"energy-wrap"
>
<div
class=
"header"
>
</div>
<!-- -->
<div
class=
"yongdianqushi"
>
<div
class=
"title"
>
</div>
<div
id=
"repair-require"
class=
"echarts-box"
></div>
</div>
<!-- -->
<div
class=
"flex gonglv"
>
<div
id=
"repair-require1"
class=
"echarts-box1"
></div>
<div
class=
"right"
></div>
</div>
</div>
</body>
<script>
window
.
onload
=
function
()
{
const
myChart
=
{}
function
initEcharts
(
el
,
option
)
{
var
ele
=
echarts
.
init
(
document
.
querySelector
(
el
));
console
.
log
(
el
)
myChart
[
el
]
=
ele
;
console
.
log
(
myChart
)
option
&&
ele
.
setOption
({
...
option
})
}
const
getEcharts
=
()
=>
{
let
option
=
{
title
:
{
text
:
'能耗报告'
,
},
tooltip
:
{
trigger
:
'axis'
,
axisPointer
:
{
// 坐标轴指示器,坐标轴触发有效
type
:
'shadow'
// 默认为直线,可选为:'line' | 'shadow'
}
},
grid
:
{
left
:
'3%'
,
right
:
'4%'
,
bottom
:
'3%'
,
containLabel
:
true
},
xAxis
:
{
type
:
'category'
,
data
:
[
'1月'
,
'2月'
,
'3月'
,
'4月'
,
'5月'
,
'6月'
,
'7月'
,
'8月'
,
'9月'
,
'10月'
,
'11月'
,
'12月'
],
axisTick
:
{
alignWithLabel
:
true
},
axisLabel
:
{
interval
:
0
,
textStyle
:
{
fontSize
:
12
,
//更改坐标轴文字大小
color
:
"#A4A9BC"
,
padding
:
[
0
,
0
,
0
,
0
],
},
}
},
yAxis
:
{
type
:
'value'
,
axisLabel
:
{
formatter
:
'{value} '
,
textStyle
:
{
fontSize
:
12
,
//更改坐标轴文字大小
color
:
"#A4A9BC"
,
padding
:
[
0
,
0
,
0
,
0
],
},
},
splitLine
:
{
show
:
true
,
lineStyle
:
{
type
:
'dashed'
}
}
},
series
:
[{
name
:
'能耗'
,
type
:
'bar'
,
barWidth
:
'60%'
,
data
:
[
0
,
0
,
10
,
20
,
0
,
40
,
0
,
0
,
0
,
0
,
0
,
0
],
itemStyle
:
{
normal
:
{
color
:
'#fff'
,
},
emphasis
:
{
color
:
'#fff'
}
}
}]
}
initEcharts
(
'#repair-require'
,
option
)
initEcharts
(
'#repair-require1'
,
option
)
}
getEcharts
();
window
.
onresize
=
function
()
{
Object
.
values
(
myChart
).
forEach
(
chart
=>
chart
.
resize
())
};
}
</script>
</html>
\ No newline at end of file
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论