首页 新闻 会员 周边 捐助

echarts X轴和Y轴 坐标没有 一一对应

0
悬赏园豆:5 [待解决问题]

option2 = {
title: {

                    text: '折线图堆叠'
                },
                tooltip: {
                    trigger: 'axis',
                    formatter: function (params) {
                        if (GetFindSelect(WxOmarkPoints, params[0].name) != undefined) {
                            return "推送时间:" + params[0].name;
                        }
                        else {
                            return '消费日期:' + params[0].name + '<br /> 消费次数:' + params[0].value;
                        }

                    }

                },
                legend: {
                    data: ['用户消费次数', '维系用户消费次数']
                },
                dataZoom: {
                    show: true,
                    realtime: true,
                    start: 50,
                    end: 100,
                    y: '420px'
                },

                toolbox: {
                    feature: {
                        saveAsImage: {}
                    }
                },
                xAxis: {
                    type: 'category',
                    boundaryGap: false,
                    axisTick: { onGap: false },
                    splitLine: { show: false },
                    data: TDate
                },
                yAxis: {
                    type: 'value'
                },
                series: [
                            {
                                name: '用户消费次数',
                                type: 'line',
                                data: WxOMyConDate,
                                showSymbol: true,
                                markPoint: {
                                    symbol: 'circle',
                                    symbolSize: 20,
                                    itemStyle: {
                                        normal: {
                                            // color:'red' 
                                            borderType: "solid"
                                        }
                                    },
                                    data: WxOmarkPoints
                                }

                            },

                              {
                                  name: '维系用户消费次数',
                                  type: 'line',
                                  data: WxTMyConDate,
                                  showSymbol: true,
                                  markPoint: {
                                      symbol: 'circle',
                                      symbolSize: 20,
                                      itemStyle: {
                                          normal: {
                                              // color:'red' 
                                              borderType: "solid"
                                          }
                                      },
                                      data: WxTmarkPoints
                                  }

                              }
                         ]
            };![](https://img2018.cnblogs.com/q/1162501/201903/1162501-20190312184902949-1690194160.png)

简单点好的主页 简单点好 | 初学一级 | 园豆:5
提问于:2019-03-12 18:49
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册