百度echarts如何实现多条折线效果图,下面web建站小编给大家简单介绍一下具体代码!
代码如下:
var option = {
tooltip: {
trigger: 'axis',
},
grid: {
left: '1%',
right: '2%',
bottom: '20%',
containLabel: true,
},
legend: {
padding: 10,
tooltip: {
show: true,
},
y: 'bottom',
data: ['门诊', '住院', '体检'],
},
xAxis: {
type: 'category',
data: [
'1月11日',
'1月12日',
'1月13日',
'1月14日',
'1月15日',
'1月16日',
'1月17日',
'1月18日',
'1月19日',
'1月20日'
]
},
yAxis: {
type: 'value'
},
series: [{
name: '门诊',
data: [190, 160, 170, 210, 207, 176, 176, 210, 170, 180],
type: 'line',
itemStyle: {
normal: {
color: 'yellow',
lineStyle: {
color: 'yellow'
}
}
},
},
{
name: '住院',
data: [103, 98, 120, 130, 125, 175, 130, 125, 75, 115],
type: 'line',
itemStyle: {
normal: {
color: 'blue',
lineStyle: {
color: 'blue'
}
}
},
},
{
name: '体检',
data: [110, 98, 120, 65, 63, 130, 125, 75, 130, 125],
type: 'line',
itemStyle: {
normal: {
color: 'green',
lineStyle: {
color: 'green'
}
}
},
},
],
}
富婆图表:提供近30种不同类型的图表,包括折线图、柱状图、饼图等
百度echarts雷达图radar根据分数点显示每个不同颜色
上面是“百度echarts如何实现多条折线效果图”的全面内容,想了解更多关于 js 内容,请继续关注web建站教程。
当前网址:https://ipkd.cn/webs_3704.html
workflows工作流
半透明的玻璃苹果ComfyUI工作流
图生图生成动漫效果ComfyUI工作流
一支令人难忘的狙击步枪ComfyUI工作流
葡萄庄园白葡萄酒ComfyUI工作流
彩色雄鹰玉雕ComfyUI工作流
一条色彩斑斓的超现实小孔雀鱼ComfyUI工作流
一幅梦幻家园comfyui工作流
一只蓬松柔软的圆形半鳄梨玩偶
猜你喜欢
声明:本站提供的所有资源部分来自互联网,如果有侵犯您的版权或其他权益,请发送到邮箱:admin@ipkd.cn,我们会在看到邮件的第一时间内为您处理!

黑客入侵效果代码
css3结合svg做一个动态广告
js实现table表格动态新增行和列表
纯css制作卡通头像(随鼠标转头)
js+css3做一个灯泡开灯关灯效果
css3动画loading效果
barcode条形码/qrcode二维码兼容所有浏览器(含ie6/ie7/ie8)
3D彩色卡片






