qq_39538215 2017-09-07 09:39 采纳率: 14.3%
浏览 1080

echarts折线图问题! 大神求教

自己做的图片说明自己做的效果图 我遇到两个问题 一个echarts两个折线图下面渐变色区域叠堆了如何解决

第二个我想让他从屏幕最左侧出来到最右侧消失 但是节点还是只显示这五个如何解决

series : [ {
name : '最高气温',
type : 'line',
smooth : true,
showAllSymbol : true,
symbolSize : 8,
symbol : 'circle',
itemStyle : {
/*
* normal:{areaStyle:{color: '#DDEAFB', shadowBlur: 10,
* shadowColor: 'rgba(0, 0, 0, 2)'}}
*/
normal : {
color : '#FF8B4C',
shadowColor : 'rgba(0, 0, 0, 0.5)',
shadowBlur : 8,
shadowOffsetY : 2
}
},

            //渐变色设置 
            areaStyle: {
                normal: {
                    color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
                        offset: 0,
                        color: 'rgba(251,209,139,0.7)'
                    }, {
                        offset: 1,
                        color: 'rgba(255,255,255,0.6)'
                    }])
                }
            },

            lineStyle : {
                normal : {
                    shadowColor : 'rgba(0, 0, 0, 0.5)',
                    shadowBlur : 2,
                    shadowOffsetY : 2
                }
            },
            label : {
                normal : {
                    show : true,
                    position : 'top',
                    formatter : '{c}℃'
                }
            },
            data : data1
        }, {
            name : '最低气温',
            type : 'line',
            smooth : true,
            showAllSymbol : true,
            symbolSize : 8,
            symbol : 'circle',
            itemStyle : {
                /*
                 * normal:{areaStyle:{color: '#B6E6D0', shadowBlur: 20,
                 * shadowColor: 'rgba(0, 0, 0, 2)'}}
                 */

                normal : {
                    color : '#5FBCF2',
                    shadowColor : 'rgba(0, 0, 0, 0.5)',
                    shadowBlur : 8,
                    shadowOffsetY : 2
                }
            },
            areaStyle: {
                normal: {
                    color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
                        offset: 0,
                        color: 'rgba(137,208,245,0.7)'
                    }, {
                        offset: 1,
                        color: 'rgba(255,255,255,0.6)'
                    }])
                }
            },
            lineStyle : {
                normal : {
                    shadowColor : 'rgba(0, 0, 0, 0.5)',
                    shadowBlur : 2,
                    shadowOffsetY : 2
                }
            },
            label : {
                normal : {
                    show : true,
                    position : 'bottom',
                    formatter : '{c}℃'
                }
            },
            data : lowest
        } ] 贴上我自己的代码
  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥30 求一段fortran代码用IVF编译运行的结果
    • ¥15 深度学习根据CNN网络模型,搭建BP模型并训练MNIST数据集
    • ¥15 lammps拉伸应力应变曲线分析
    • ¥15 C++ 头文件/宏冲突问题解决
    • ¥15 用comsol模拟大气湍流通过底部加热(温度不同)的腔体
    • ¥50 安卓adb backup备份子用户应用数据失败
    • ¥20 有人能用聚类分析帮我分析一下文本内容嘛
    • ¥15 请问Lammps做复合材料拉伸模拟,应力应变曲线问题
    • ¥30 python代码,帮调试,帮帮忙吧
    • ¥15 #MATLAB仿真#车辆换道路径规划