清爽折线图

Posted kkvt

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了清爽折线图相关的知识,希望对你有一定的参考价值。

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]
                    }
                ]
            };

 

以上是关于清爽折线图的主要内容,如果未能解决你的问题,请参考以下文章

28-Vue之ECharts-折线图

100天精通Python(可视化篇)——第79天:matplotlib绘制不同种类炫酷折线图代码实战(网格趋势对比百分比多条折线堆积百分比堆积多坐标子图3D折线图)

Qwt开发笔记:Qwt基础框架介绍折线图介绍折线图Demo以及代码详解

Qwt开发笔记:Qwt基础框架介绍折线图介绍折线图Demo以及代码详解

python多个折线图合并到一个三维图

怎么用python做光滑折线图,谢谢了,困扰我很多天了