test

博客园 首页 新随笔 联系 订阅 管理
  109 随笔 :: 0 文章 :: 1 评论 :: 16万 阅读
复制代码
option = {
                title: {
                    left: '1%',
                    text: '考试成绩',
                    textStyle: {   //标题颜色
                        color: '#6E6E6E',
                        fontSize: '13px cursive',
                    }
                },
                tooltip: {
                    trigger: 'axis'
                },
                legend: {
                    icon: 'circle',
                    orient: 'horizontal',
                    top: '93%',
                    itemWidth: 28,
                    itemHeight: 28,
                    itemGap: 35,
                    data: ['数学', '语文', '英语'],
                    textStyle: {   //标题颜色
                        color: '#6E6E6E',
                        fontSize: '13px cursive',
                    }
                },
                color: ['#ffa414', '#CCC', '#6495ED', '#FF0000'],  //设置legend颜色
                grid: {
                    left: '3%',
                    right: '6%',
                    bottom: '10%',
                    containLabel: true
                },
                toolbox: {
                    feature: {
                        saveAsImage: {}
                    }
                },
                xAxis: {
                    type: 'category',
                    boundaryGap: false,
                    data: ['1-1', '1-2', '1-3'],
                    axisLabel: {
                        show: true,
                        textStyle: {
                            color: '#6E6E6E',
                        },
                        fontSize: '13px cursive',//字体大小
                        padding: [0, 0, 0, 10],//值离刻度线位置
                    },
                },
                yAxis: {
                    minInterval:1,
                    type: 'value',
                    axisLine: {
                        show: false
                    },
                    axisLabel: {
                        show: true,
                        textStyle: {
                            color: '#6E6E6E',
                        },
                        fontSize: '13px cursive',//字体大小
                        padding: [0, 20, 0, 0],//值离刻度线位置
                    },
                },
                series: [
                    {
                        name: '数学',
                        type: 'line',
                        symbol: 'circle',//设置实心圆
                        symbolSize: 20,   //设定实心点的大小
                        lineStyle: {  //设置折线颜色
                            normal: {
                                width: 4
                            }
                        },
                        data: [3,5,1]
                    },
                    {
                        name: '语文',
                        type: 'line',
                        symbol: 'circle',//设置实心圆
                        symbolSize: 20,   //设定实心点的大小
                        lineStyle: {  //设置折线颜色
                            normal: {
                                width: 4
                            }
                        },
                        data: [5,3,8]
                    },
                    {
                        name: '英语',
                        type: 'line',
                        symbol: 'circle',//设置实心圆
                        symbolSize: 20,   //设定实心点的大小
                        lineStyle: {  //设置折线颜色
                            normal: {
                                width: 4
                            }
                        },
                        data: [1,2,3]
                    }
                ]
            };
复制代码

 

posted on   testgogogo  阅读(177)  评论(0编辑  收藏  举报
编辑推荐:
· go语言实现终端里的倒计时
· 如何编写易于单元测试的代码
· 10年+ .NET Coder 心语,封装的思维:从隐藏、稳定开始理解其本质意义
· .NET Core 中如何实现缓存的预热?
· 从 HTTP 原因短语缺失研究 HTTP/2 和 HTTP/3 的设计差异
阅读排行:
· 分享一个免费、快速、无限量使用的满血 DeepSeek R1 模型,支持深度思考和联网搜索!
· 基于 Docker 搭建 FRP 内网穿透开源项目(很简单哒)
· ollama系列01:轻松3步本地部署deepseek,普通电脑可用
· 按钮权限的设计及实现
· 25岁的心里话
点击右上角即可分享
微信分享提示