Toggle navigation
Toggle navigation
This project
Loading...
Sign in
万朱浩
/
Venue-Ops
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
戒酒的李白
2024-07-03 14:24:56 +0800
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
ad11069b0537538c30e1b4172d4914dbaae26053
ad11069b
2 parents
fb203c6b
c3284855
Merge branch 'main' of
https://github.com/666ghj/Weibo_PublicOpinion_AnalysisSystem
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
155 additions
and
0 deletions
views/page/templates/commentChar.html
views/page/templates/commentChar.html
View file @
ad11069
...
...
@@ -150,3 +150,158 @@
{% endblock %}
{% block echarts %}
<script>
var
chartDom
=
document
.
getElementById
(
'main'
);
var
myChart
=
echarts
.
init
(
chartDom
);
var
option
;
option
=
{
title
:
{
text
:
'评论点赞量区间折线图'
,
left
:
'1%'
},
tooltip
:
{
trigger
:
'axis'
},
grid
:
{
left
:
'5%'
,
right
:
'15%'
,
bottom
:
'10%'
},
legend
:{},
xAxis
:
{
data
:
{{
xData
|
tojson
}}
},
yAxis
:
{},
toolbox
:
{
right
:
10
,
feature
:
{
dataZoom
:
{
yAxisIndex
:
'none'
},
restore
:
{},
saveAsImage
:
{}
}
},
dataZoom
:
[
{
show
:
true
,
start
:
80
,
end
:
100
},
{
type
:
'inside'
,
start
:
80
,
end
:
100
}
],
visualMap
:
{
top
:
50
,
right
:
10
,
pieces
:
[
{
gt
:
0
,
lte
:
50
,
color
:
'#93CE07'
},
{
gt
:
50
,
lte
:
100
,
color
:
'#FBDB0F'
},
{
gt
:
100
,
lte
:
150
,
color
:
'#FC7D02'
},
{
gt
:
150
,
lte
:
200
,
color
:
'#FD0100'
},
{
gt
:
200
,
lte
:
300
,
color
:
'#AA069F'
},
{
gt
:
300
,
color
:
'#AC3B2A'
}
],
outOfRange
:
{
color
:
'#999'
}
},
series
:
{
name
:
'点赞个数'
,
type
:
'line'
,
data
:
{{
yData
}},
markLine
:
{
silent
:
true
,
lineStyle
:
{
color
:
'#333'
},
data
:
[
{
yAxis
:
50
},
{
yAxis
:
100
},
{
yAxis
:
150
},
{
yAxis
:
200
},
{
yAxis
:
300
}
]
}
}
}
option
&&
myChart
.
setOption
(
option
);
</script>
<script>
var
chartDom
=
document
.
getElementById
(
'mainTwo'
);
var
myChart
=
echarts
.
init
(
chartDom
);
var
option
;
option
=
{
title
:
{
text
:
'评论性别占比饼图'
,
left
:
'center'
},
tooltip
:
{
trigger
:
'item'
},
legend
:
{
orient
:
'vertical'
,
left
:
'left'
},
series
:
[
{
name
:
'性别个数'
,
type
:
'pie'
,
radius
:
'50%'
,
data
:
{{
genderPieData
|
tojson
}},
emphasis
:
{
itemStyle
:
{
shadowBlur
:
10
,
shadowOffsetX
:
0
,
shadowColor
:
'rgba(0, 0, 0, 0.5)'
}
}
}
]
};
option
&&
myChart
.
setOption
(
option
);
</script>
{% endblock %}
\ No newline at end of file
...
...
Please
register
or
login
to post a comment