import random
from pyecharts import options as opts
from pyecharts.charts import *
from pyecharts.globals import CurrentConfig
CurrentConfig.ONLINE_HOST = "https://cdn.kesci.com/lib/pyecharts_assets/"
province = [
'广东',
'湖北',
'湖南',
'四川',
'重庆',
'黑龙江',
'浙江',
'山西',
'河北',
'安徽',
'河南',
'山东',
'西藏']
data = [(i, random.randint(50, 150)) for i in province]
geo = (
Geo()
.add_schema(maptype="china")
.add("", data)
# 网址:https://www.heywhale.com/mw/project/5eb7958f366f4d002d783d4a
# 在中间引入这段代码即可
.set_series_opts(label_opts=opts.LabelOpts(position="right"))
.render('中国地图.html')
)
# 虚假数据
data = [[i, j, random.randint(0, 100)] for i in range(24) for j in range(7)]
hour_list = [str(i) for i in range(24)]
week_list = ['周日', '周一', '周二', '周三', '周四', '周五', '周六']
heat = (HeatMap()
.add_xaxis(hour_list)
.add_yaxis("", week_list, data)
.set_series_opts(label_opts=opts.LabelOpts(position="right"))
.render('方格图.html')
)
data = [(random.randint(0, 100), random.randint(0, 100), random.randint(0, 100)) for _ in range(100)]
scatter3D = (Scatter3D()
.add("", data)
# 网址:https://www.heywhale.com/mw/project/5eb7958f366f4d002d783d4a
# 在中间引入这段代码即可
.set_series_opts(label_opts=opts.LabelOpts(position="right"))
.render('3D散点图.html')
)
data = [[i, j, random.randint(0, 100)] for i in range(24) for j in range(7)]
hour_list = [str(i) for i in range(24)]
week_list = ['周日', '周一', '周二', '周三', '周四', '周五', '周六']
bar3D = (
Bar3D()
.add(
"",
data,
xaxis3d_opts=opts.Axis3DOpts(hour_list, type_="category"),
yaxis3d_opts=opts.Axis3DOpts(week_list, type_="category"),
zaxis3d_opts=opts.Axis3DOpts(type_="value"),
)
# 在中间引入这段代码即可
.set_series_opts(label_opts=opts.LabelOpts(position="right"))
.render('3D直方图.html')
)
from pyecharts.faker import POPULATION
mapglobe = (
MapGlobe()
.add_schema()
.add(
series_name="",
maptype="world",
data_pair=POPULATION[1:]
)
# 在中间引入这段代码即可
.set_series_opts(label_opts=opts.LabelOpts(position="right"))
.render('3D地球.html')
)
# 虚假数据
x_data = [random.randint(0, 100) for _ in range(20)]
y_data = [random.randint(0, 100) for _ in range(20)]
# 将x轴设置为数值类型
scatter = (Scatter()
.add_xaxis(x_data)
.add_yaxis('', y_data)
.set_global_opts(xaxis_opts=opts.AxisOpts(type_='value'))
# 在中间引入这段代码即可
.set_series_opts(label_opts=opts.LabelOpts(position="right"))
.render('坐标轴类型.html')
)
# 虚假数据
x_data = list(range(1990,2020))
y_data_1 = [random.randint(0, 100) for _ in x_data]
y_data_2 = [random.randint(0, 100) for _ in x_data]
bar = (
Bar()
.add_xaxis(x_data)
.add_yaxis('图例1', y_data_1)
.add_yaxis('图例2', y_data_2)
.set_global_opts(datazoom_opts=opts.DataZoomOpts(orient="vertical"))
# 在中间引入这段代码即可
.set_series_opts(label_opts=opts.LabelOpts(position="right"))
.render('缩放Y轴.html')
)
# 虚假数据
x_data = ['Apple', 'Huawei', 'Xiaomi', 'Oppo', 'Vivo', 'Meizu']
y_data_1 = [123, 153, 89, 107, 98, 23]
y_data_2 = [231, 321, 135, 341, 245, 167]
y_data_3 = [223, 453, 189, 207, 221, 123]
# 注意区分
line = (Line()
.add_xaxis(x_data)
.add_yaxis('1', y_data_1, color='green')
.add_yaxis('2', y_data_2, color='green', linestyle_opts=opts.LineStyleOpts(color='black'))
.add_yaxis('3', y_data_3, linestyle_opts=opts.LineStyleOpts(color='black'))
# 在中间引入这段代码即可
.set_series_opts(label_opts=opts.LabelOpts(position="right"))
.render('折线图.html')
)
# 虚假数据
x_data = ['Apple', 'Huawei', 'Xiaomi', 'Oppo', 'Vivo', 'Meizu']
y_data_1 = [123, 153, 89, 107, 98, 23]
y_data_2 = [231, 321, 135, 341, 245, 167]
effectScatter = (EffectScatter()
.add_xaxis(x_data)
.add_yaxis('', y_data_1,
effect_opts=opts.EffectOpts(scale=10, period=5))
.add_yaxis('', y_data_2,
effect_opts=opts.EffectOpts(scale=5, period=10))
# 在中间引入这段代码即可
.set_series_opts(label_opts=opts.LabelOpts(position="right"))
.render('范围 & 周期.html')
)
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
毕业设计基于Python豆瓣电影数据爬取及可视化源码。通过python爬去豆瓣网的数据,用大数据基础对数据进行清洗,然后对清洗的数据可视化展示出来。毕业设计基于Python豆瓣电影数据爬取及可视化源码。通过python爬去豆瓣网的数据,用大数据基础对数据进行清洗,然后对清洗的数据可视化展示出来。毕业设计基于Python豆瓣电影数据爬取及可视化源码。通过python爬去豆瓣网的数据,用大数据基础对数据进行清洗,然后对清洗的数据可视化展示出来。毕业设计基于Python豆瓣电影数据爬取及可视化源码。通过python爬去豆瓣网的数据,用大数据基础对数据进行清洗,然后对清洗的数据可视化展示出来。毕业设计基于Python豆瓣电影数据爬取及可视化源码。通过python爬去豆瓣网的数据,用大数据基础对数据进行清洗,然后对清洗的数据可视化展示出来。
资源推荐
资源详情
资源评论
收起资源包目录
毕业设计基于Python豆瓣电影数据爬取及可视化源码.zip (112个子文件)
bootstrap.css 149KB
bootstrap.min.css 116KB
common.css 21KB
style.css 11KB
laydate.css 8KB
comon0.css 7KB
bootstrap-table.css 7KB
map.css 6KB
base.css 3KB
pagination.css 697B
bootstrap-3.3.4.css 277B
豆瓣电影top250.csv 118KB
glyphicons-halflings-regular.eot 20KB
iconfont.eot 2KB
fontawesome-webfont.eot 67KB
glyphicons-halflings-regular.eot 20KB
Python后端页面.html 37KB
3D地球.html 31KB
方格图.html 24KB
3D直方图.html 23KB
3D散点图.html 16KB
tu.html 14KB
index.html 9KB
缩放Y轴.html 8KB
折线图.html 8KB
各年份上映电影数量.html 8KB
电影评价人数前二十.html 7KB
坐标轴类型.html 7KB
中国地图.html 7KB
各地区上映电影数量前十.html 6KB
trend.html 6KB
范围 & 周期.html 5KB
quota.html 5KB
index.html 5KB
chronic.html 4KB
echarts.html 1KB
chartBack.jpg 295KB
bg.jpg 252KB
echarts.min.js 727KB
echarts1.min.js 727KB
echarts.min.js 691KB
china1.js 117KB
jquery-3.3.1.min.js 85KB
jquery-2.2.1.min.js 84KB
jquery.js 82KB
jquery-2.1.1.min.js 82KB
base.js 42KB
laydate.js 27KB
index.js 21KB
js.js 17KB
quota.js 16KB
area_echarts.js 16KB
trend.js 13KB
common.js 7KB
bmap.min.js 5KB
jquery.slimscroll.min.js 5KB
jquery.pagination.min.js 3KB
chronic.js 175B
map_bg.png 1002KB
true1.png 175KB
true.png 175KB
title.png 77KB
guanyingrenshu.png 14KB
info_1.png 8KB
head_bg.png 8KB
info_11.png 7KB
info_10.png 7KB
info_12.png 6KB
logo.png 6KB
info-img-2.png 5KB
info-img-2.png 5KB
line1.png 5KB
line.png 5KB
info-img-4.png 4KB
info-img-4.png 4KB
close.png 4KB
info-text.png 4KB
info-text.png 4KB
info-img-3.png 3KB
info-img-3.png 3KB
info-img-1.png 3KB
info-img-1.png 3KB
info-title.png 3KB
info-title.png 3KB
bj-2.png 3KB
bj-2.png 3KB
bj-4.png 3KB
bj-4.png 3KB
bj-1.png 3KB
bj-3.png 3KB
bj-1.png 3KB
bj-3.png 3KB
mintitle.png 3KB
mintitle_1.png 2KB
find.png 811B
t_1.png 506B
可视化图用于生成html.py 5KB
豆瓣电影TOP250爬取.py 3KB
电影数据可视化.py 3KB
豆瓣电影TOP250部分可视化生成html图.py 1KB
共 112 条
- 1
- 2
老帽爬新坡
- 粉丝: 79
- 资源: 2万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
前往页