网上学习资料一大堆,但如果学到的知识不成体系,遇到问题时只是浅尝辄止,不再深入研究,那么很难做到真正的技术提升。
一个人可以走的很快,但一群人才能走的更远!不论你是正从事IT行业的老鸟或是对IT行业感兴趣的新人,都欢迎加入我们的的圈子(技术交流、学习资源、职场吐槽、大厂内推、面试辅导),让我们一起学习成长!
@File : 2.折线图.py
@Software: PyCharm
from pyecharts.charts import *
from pyecharts.components import Table
from pyecharts import options as opts
from pyecharts.commons.utils import JsCode
import random
import datetime
from pyecharts.globals import CurrentConfig
CurrentConfig.ONLINE_HOST = “https://cdn.kesci.com/lib/pyecharts_assets/”
x_data = [‘python’, ‘java’, ‘c’,‘c++’, ‘R’, ‘excel’]
y_data = [143, 123, 69, 107, 90, 73]
line = (Line()
.add_xaxis(x_data)
.add_yaxis(‘’, y_data)
)
line.render(“2.折线图.html”)
![](https://img-blog.csdnimg.cn/d7b489944281493897962ed697003c12.png?x-oss-process=image/watermark,type_d3F5LXplbmhlaQ,shadow_50,text_Q1NETiBA5bCP6buE5ZCM5a2mQUM=,size_20,color_FFFFFF,t_70,g_se,x_16)
## 3.箱形图
--coding:utf-8 --
@Time : 21:25
@Author: 黄荣津
@File : 3.箱型图.py
@Software: PyCharm
from pyecharts.charts import *
from pyecharts.components import Table
from pyecharts import options as opts
from pyecharts.commons.utils import JsCode
import random
import datetime
from pyecharts.globals import CurrentConfig
CurrentConfig.ONLINE_HOST = “https://cdn.kesci.com/lib/pyecharts_assets/”
x_data = [‘python’, ‘java’, ‘c’,‘c++’, ‘R’, ‘excel’]
y_data = [[random.randint(100, 150) for i in range(20)] for item in x_data]
class Box:
pass
box =( Boxplot()
.add_xaxis(x_data)
.add_yaxis(“”, (y_data))
)
box.render(“3.箱型图.html”)
##
## 4.散点图
--coding:utf-8 --
@Time : 21:58
@Author: 黄荣津
@File : 4.散点图.py
@Software: PyCharm
from pyecharts.charts import *
from pyecharts.components import Table
from pyecharts import options as opts
from pyecharts.commons.utils import JsCode
import random
import datetime
from pyecharts.globals import CurrentConfig
CurrentConfig.ONLINE_HOST = “https://cdn.kesci.com/lib/pyecharts_assets/”
x_data = [‘python’, ‘java’, ‘c’,‘c++’, ‘R’, ‘excel’]
y_data = [143, 123, 69, 107, 90, 73]
Scatter=(Scatter()
.add_xaxis(x_data)
.add_yaxis(‘’, y_data)
)
Scatter.render(“4.散点图.html”)
##
## 5.带涟漪效果散点图
--coding:utf-8 --
@Time : 22:23
@Author: 黄荣津
@File : 5.带涟漪效果散点图.py
@Software: PyCharm
from pyecharts.charts import *
from pyecharts.components import Table
from pyecharts import options as opts
from pyecharts.commons.utils import JsCode
import random
import datetime
from pyecharts.globals import CurrentConfig
CurrentConfig.ONLINE_HOST = “https://cdn.kesci.com/lib/pyecharts_assets/”
x_data = [‘python’, ‘java’, ‘c’,‘c++’, ‘R’, ‘excel’]
y_data = [143, 123, 69, 107, 90, 73]
effectScatter = (EffectScatter()
.add_xaxis(x_data)
.add_yaxis(‘’, y_data)
)
effectScatter.render(“5.带涟漪效果散点图.html”)
##
## 6.k线图
--coding:utf-8 --
@Time : 22:27
@Author: 黄荣津
@File : 6.k线图.py
@Software: PyCharm
from pyecharts.charts import *
from pyecharts.components import Table
from pyecharts import options as opts
from pyecharts.commons.utils import JsCode
import random
import datetime
from pyecharts.globals import CurrentConfig
CurrentConfig.ONLINE_HOST = “https://cdn.kesci.com/lib/pyecharts_assets/”
date_list = [“2022/4/{}”.format(i + 1) for i in range(30)]
y_data = [[random.randint(200, 350) for i in range(20)] for item in date_list]
kline = (Kline()
.add_xaxis(date_list)
.add_yaxis(‘’, y_data)
)
kline.render(“6.k线图.html”)
##
## 7.热力图
--coding:utf-8 --
@Time : 22:36
@Author: 黄荣津
@File : 7.热力图.py
@Software: PyCharm
from pyecharts.charts import *
from pyecharts.components import Table
from pyecharts import options as opts
from pyecharts.commons.utils import JsCode
import random
import datetime
from pyecharts.globals import CurrentConfig
CurrentConfig.ONLINE_HOST = “https://cdn.kesci.com/lib/pyecharts_assets/”
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)
网上学习资料一大堆,但如果学到的知识不成体系,遇到问题时只是浅尝辄止,不再深入研究,那么很难做到真正的技术提升。
一个人可以走的很快,但一群人才能走的更远!不论你是正从事IT行业的老鸟或是对IT行业感兴趣的新人,都欢迎加入我们的的圈子(技术交流、学习资源、职场吐槽、大厂内推、面试辅导),让我们一起学习成长!
果学到的知识不成体系,遇到问题时只是浅尝辄止,不再深入研究,那么很难做到真正的技术提升。**
一个人可以走的很快,但一群人才能走的更远!不论你是正从事IT行业的老鸟或是对IT行业感兴趣的新人,都欢迎加入我们的的圈子(技术交流、学习资源、职场吐槽、大厂内推、面试辅导),让我们一起学习成长!