数据可视化
学习如何使用数据分析软件如Tableau可视化数据 #生活技巧# #工作学习技巧# #数字技能学习#
import datetime
import random
from pyecharts import options as opts
from pyecharts.charts import Calendar
begin = datetime.date(2019, 1, 1)
end = datetime.date(2019, 12, 31)
data = [
[str(begin + datetime.timedelta(days=i)), random.randint(1000, 25000)]
for i in range((end - begin).days + 1)
]
c = (
Calendar()
.add(
"",
data,
calendar_opts=opts.CalendarOpts(
range_="2019",
daylabel_opts=opts.CalendarDayLabelOpts(name_map="cn"),
monthlabel_opts=opts.CalendarMonthLabelOpts(name_map="cn"),
),
)
.set_global_opts(
title_opts=opts.TitleOpts(title="Calendar-2019年微信步数情况(中文 Label)"),
visualmap_opts=opts.VisualMapOpts(
max_=20000,
min_=500,
orient="horizontal",
is_piecewise=True,
pos_top="230px",
pos_left="100px",
),
)
.render("calendar_label_setting.html")
)
网址:数据可视化 https://www.yuejiaxmz.com/news/view/440968
相关内容
Python数据可视化数字生活,视觉智慧:数据可视化的日常魅力
数据之美:如何用数据可视化优化我们的日常生活?
Axure智慧社区数据可视化大屏模板
Python数据分析:对饮食与健康数据的分析与可视化
高校数据安全怎么做?安全可视化全面预防数据泄露
Python:seaborn的散点图矩阵(Pairs Plots)可视化数据
基于农村和城镇的人民生活数据可视化分析
全国各地区衣食住行消费数据分析可视化
大数据新视界