{"action":"created","issue":{"url":"https://api.github.com/repos/ecomfe/echarts/issues/3010","repository_url":"https://api.github.com/repos/ecomfe/echarts","labels_url":"https://api.github.com/repos/ecomfe/echarts/issues/3010/labels{/name}","comments_url":"https://api.github.com/repos/ecomfe/echarts/issues/3010/comments","events_url":"https://api.github.com/repos/ecomfe/echarts/issues/3010/events","html_url":"https://github.com/ecomfe/echarts/issues/3010","id":148929425,"number":3010,"title":"一些问题与建议","user":{"login":"ychaos","id":10177735,"avatar_url":"https://avatars.githubusercontent.com/u/10177735?v=3","gravatar_id":"","url":"https://api.github.com/users/ychaos","html_url":"https://github.com/ychaos","followers_url":"https://api.github.com/users/ychaos/followers","following_url":"https://api.github.com/users/ychaos/following{/other_user}","gists_url":"https://api.github.com/users/ychaos/gists{/gist_id}","starred_url":"https://api.github.com/users/ychaos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ychaos/subscriptions","organizations_url":"https://api.github.com/users/ychaos/orgs","repos_url":"https://api.github.com/users/ychaos/repos","events_url":"https://api.github.com/users/ychaos/events{/privacy}","received_events_url":"https://api.github.com/users/ychaos/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-04-17T08:25:52Z","updated_at":"2016-04-23T16:48:30Z","closed_at":null,"body":"<!--\r\n为了方便我们能够复现和修复 bug，请遵从下面的规范描述您的问题。\r\n-->\r\n#### 问题简述 (One-line summary)\r\n\r\n1.建议给每个坐标轴和series加上show标签控制显示与隐藏，必须都加，比如geo坐标关掉，但是数据仍然显示在一个无地图的空白区域\r\n\r\n2.散点类型引用geoIndex，在series”时间数据“上启用datazoom时会报错Uncaught TypeError: seriesModel.coordinateSystem.getOtherAxis is not a function，dataZoom.show=false就不会报错只是数据显示不出来了，或注释掉//coordinateSystem: 'geo'也能出现同样结果，但是series“时间数据”表显示会有问题（区域显示不全）。估计猜测原因是否是虽然设置了geoindex属性，但是散点series仍然具有默认xAxisIndex属性造成的。测试设置 geo的xAxisIndex: 1,  yAxisIndex: 1，问题消除，确认此bug，实际此option中我并未设置第二个横纵坐标，望速修复\r\n\r\n3.series”时间数据“中的提示必须加在全局处，否则不显示，但是加在此处会与其他series中的tooltip冲突，建议tooltip在每个series中设置，因为不同的series可能需要不同的提示方法\r\n\r\n4,对柱形类目轴只能提供一维数据，比如轴类[a,b,c,d,e]只能放数据[1,2,3,4,5]，希望能填充[[1,1,1],[2,2],3,4,5]这样维度的数据，让[1,1,1]进行堆叠在一个柱，而且最好能提供颜色区分或分割线\r\n\r\n#### 版本及环境 (Version & Environment)\r\n+ ECharts 版本 (ECharts version):3\r\n+ 浏览器类型和版本 (Browser version):chrome\r\n+ 操作系统类型和版本 (OS Version):win10\r\n\r\n\r\n\r\n#### ECharts配置项 (ECharts option)\r\n<!-- 下方贴你的option，注意不要删掉下方 ```javascript 和 尾部的 ``` 字样。\r\n最好是我们能够直接运行的 option。如何得到能运行的 option 参见上方的 guidelines for contributing\r\n-->\r\n```javascript\r\n option = {\r\n        //全局背景\r\n        backgroundColor: 'white',\r\n\r\n\r\n        //缩放\r\n        dataZoom: {\r\n            type: 'slider',  start: 70, xAxisIndex: 0, top: '60%',\r\n           fillerColor: 'rgba(255,69,84,0.1)', handleColor: 'rgba(255,69,84,0.65)',\r\n        },    \r\n\r\n        //公共提示\r\n        tooltip: { trigger: 'item' },//全局设置数据项提示，在series中设置需要复杂提示 以满足不同类型表提示的需求\r\n**       //时间中的提示必须加在此处，否则不显示，但是加在此处会与其他series中的tooltip冲突建议tooltip在series中设置**\r\n        //tooltip:\r\n          //  {\r\n          //      trigger: 'axis',\r\n           //     formatter: function (params) {\r\n            //        params = params[0];\r\n        \r\n                //    var date = new Date(params.value[0]);\r\n               //     data = date.getFullYear() + '-' + (date.getMonth() + 1) + '-' + date.getDate() + ' ' + //date.getHours() + ':' + date.getMinutes();\r\n          //          return data + '<br/>' + params.value[1];\r\n          //      }\r\n         //   },\r\n        //直角坐标系网格\r\n        grid: [\r\n            { x: '5%', y: '5%', width: '50%', height: '50%' },\r\n        ],\r\n\r\n        //直角坐标系横轴\r\n        xAxis: [\r\n            { gridIndex: 0, type: 'time', splitLine: { show: false } }\r\n        ],\r\n\r\n        //直角坐标系纵轴\r\n        yAxis: [\r\n            { gridIndex: 0, type: 'value', splitLine: { show: false } },\r\n        ],\r\n\r\n        //地理地图坐标\r\n        geo: [\r\n            //世界\r\n           //  {\r\n            //     show: geoswitch.world,\r\n            //     map: 'world',\r\n            //     roam: false,\r\n             //    scaleLimit: { min: 1, max: 1, },\r\n            //     nameMap: {},\r\n            //     label: { emphasis: { show: false } },\r\n             //    itemStyle: {\r\n            //         normal: { areaColor: '#323c48', borderColor: '#111' },\r\n           //          emphasis: { areaColor: '#2a333d' }\r\n          //       },\r\n          //       zlevel: 0,\r\n          //       z: 0,\r\n         //        left: '55%',\r\n         //        top: '5%',\r\n         //        right: '0%',\r\n         //        bottom: 'Auto',\r\n        //     },\r\n            //中国\r\n            {\r\n               // show: geoswitch.china,\r\n                map: 'china',\r\n                roam: false,\r\n                scaleLimit: { min: 1, max: 1, },\r\n                nameMap: {},\r\n                label: { emphasis: { show: false } },\r\n                itemStyle: {\r\n                    normal: { areaColor: '#323c48', borderColor: '#111' },\r\n                    emphasis: { areaColor: '#2a333d' }\r\n                },\r\n                zlevel: 0,\r\n                z: 0,\r\n                 left: '55%',\r\n                 top: '5%',\r\n                 right: '0%',\r\n                 bottom: 'Auto',\r\n           },\r\n            //湖南\r\n            {\r\n                // show: geoswitch.hunan,\r\n               //  map: '湖南',\r\n              //   roam: false,\r\n              //   scaleLimit: { min: 1, max: 1, },\r\n             //    nameMap: {},\r\n              //   label: { emphasis: { show: false } },\r\n              //   itemStyle: {\r\n              //       normal: { areaColor: '#323c48', borderColor: '#111' },\r\n              //       emphasis: { areaColor: '#2a333d' }\r\n             //    },\r\n             //    zlevel: 0,\r\n             //    z: 0,\r\n             //    left: '55%',\r\n              //   top: '5%',\r\n             //    right: '0%',\r\n              //   bottom: 'Auto',\r\n          //   },\r\n        ],\r\n\r\n        //\r\n        series:\r\n            [\r\n               //地图坐标\r\n               {\r\n                   name: 'geo',\r\n                   type: 'scatter',\r\n                   tooltip:\r\n                   {\r\n                       trigger: 'item',\r\n                       formatter: function (params) { return params.name + ' : ' + params.value[2]; }\r\n                   },\r\n                   coordinateSystem: 'geo',\r\n                   geoIndex: 1,\r\n                   data: convertgeoData(geodata.data),//自行添加\r\n                   symbolSize: 12,\r\n                  label: { normal: { show: false }, emphasis: { show: false } },\r\n                  itemStyle: { emphasis: { borderColor: '#fff', borderWidth: 1 } }\r\n               },\r\n\r\n               //时间\r\n                {\r\n                    name: '时间数据',\r\n                    type: 'line',\r\n\r\n            **//此处设置无效**\r\n                  //  tooltip:\r\n                    //    {\r\n                        //    trigger: 'axis',\r\n                          //  formatter: function (params) {\r\n                           //     params = params[0];\r\n                              //  var date = new Date(params.value[0]);\r\n                               // data = date.getFullYear() + '-' + (date.getMonth() + 1) + '-' + date.getDate() + ' ' //+ date.getHours() + ':' + date.getMinutes();\r\n                              //  return data + '<br/>' + params.value[1];\r\n                           // }\r\n                       // },\r\n                    xAxisIndex: 0,\r\n                    yAxisIndex: 0,\r\n                    smooth: true,\r\n                    symbol: 'none',\r\n                    showAllSymbol: true,\r\n                    itemStyle: {\r\n                        normal: {\r\n                            color: '#5aff46'\r\n                        }\r\n                    },\r\n                    areaStyle:\r\n                        {\r\n                            normal:\r\n                                {\r\n                                    color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [\r\n                                        { offset: 0, color: 'rgb(255, 158, 68)' },\r\n                                        { offset: 1, color: '#52e50b' }\r\n                                    ])\r\n                                }\r\n                        },\r\n                    data: timedata//自行添加\r\n                }, \r\n\r\n            ],\r\n\r\n        //调色盘颜色列表\r\n        //会对应到系列，图例颜色按此排列\r\n        //默认['#c23531','#2f4554', '#61a0a8', '#d48265', '#91c7ae','#749f83',  '#ca8622', '#bda29a','#6e7074', '#546570', '#c4ccd3']\r\n        color: ['red', 'blue', 'green', 'yellow', 'gray']\r\n    };\r\n\r\n```\r\n\r\n\r\n#### 其他信息 (Other comments)\r\n<!-- 例如，截图或线上实例 (JSFiddle/JSBin/Codepen) (For example: Screenshot or Online demo) -->\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/ecomfe/echarts/issues/comments/213779398","html_url":"https://github.com/ecomfe/echarts/issues/3010#issuecomment-213779398","issue_url":"https://api.github.com/repos/ecomfe/echarts/issues/3010","id":213779398,"user":{"login":"pissang","id":841551,"avatar_url":"https://avatars.githubusercontent.com/u/841551?v=3","gravatar_id":"","url":"https://api.github.com/users/pissang","html_url":"https://github.com/pissang","followers_url":"https://api.github.com/users/pissang/followers","following_url":"https://api.github.com/users/pissang/following{/other_user}","gists_url":"https://api.github.com/users/pissang/gists{/gist_id}","starred_url":"https://api.github.com/users/pissang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pissang/subscriptions","organizations_url":"https://api.github.com/users/pissang/orgs","repos_url":"https://api.github.com/users/pissang/repos","events_url":"https://api.github.com/users/pissang/events{/privacy}","received_events_url":"https://api.github.com/users/pissang/received_events","type":"User","site_admin":false},"created_at":"2016-04-23T16:48:29Z","updated_at":"2016-04-23T16:48:29Z","body":"关于第 5 点，我们现在的数据格式是无法做到你说的这样的，如果有一项是一个数组，说明这个数据项是多维数据，会有其它属性，而不是层级关系"}}