dark-wind opened a new issue #8462: category类型Y轴,使用itemStyle标签隐藏列失效 URL: https://github.com/apache/incubator-echarts/issues/8462 <!-- 为了方便我们能够复现和修复 bug,请遵从下面的规范描述您的问题。 --> ### One-line summary [问题简述] category类型Y轴,使用itemStyle标签隐藏列失效 ### Version & Environment [版本及环境] + ECharts version [ECharts 版本]:^4.0.4 + Browser version [浏览器类型和版本]:chrome firefox + OS Version [操作系统类型和版本]:ubuntu16.10 ### Expected behaviour [期望结果] [代码及期望](http://gallery.echartsjs.com/editor.html?c=xSJTvqKJl7&comment=0) 设置 color 值为 rgba(0,0,0,0) 使绿色的辅助条形柱和背景颜色相同,得到甘特图效果 ### ECharts option [ECharts配置项] <!-- Copy and paste your 'echarts option' here. --> <!-- [下方贴你的option,注意不要删掉下方 ```javascript 和 尾部的 ``` 字样。最好是我们能够直接运行的 option。如何得到能运行的 option 参见上方的 guidelines for contributing] --> ```javascript option = { title: {text: '甘特图'}, name: '如何让绿色部分隐藏,只留下红色部分', tooltip: {}, dataset: { sourceHeader:false, dimensions: ['product', {name:'start', type:'time'}, {name:'end', type:'time'}], // 提供一份数据。 source: [ ['任务一', '2017-05-10', '2017-05-11'], ['任务二', '2017-05-12', '2017-05-14'], ['任务三', '2017-05-15', '2017-05-17'], ['任务四', '2017-05-19', '2017-05-20'] ] }, yAxis: {type: 'category'}, xAxis: { type:'time', min: '2017-05-01' }, series: [ { type:'bar', stack: '计划', encode: { y: 'product', x: 'end', }, label: { normal: { show: true, position: 'inside' } }, }, { type:'bar', stack: '计划', name: '辅助', data: [ '2017-05-10', '2017-05-12', '2017-05-15', '2017-05-19', ], itemStyle: { normal: { barBorderColor: 'rgba(0,0,0,0)', color: 'green' }, emphasis: { barBorderColor: 'rgba(0,0,0,0)', color: 'green' } }, } ] }; ``` ### Other comments [其他信息] <!-- For example: Screenshot or Online demo --> <!-- [例如,截图或线上实例 (JSFiddle/JSBin/Codepen)] --> 尝试过最新的版本 4.1.0 错误依然存在,再较低版本,如2.0,可能获得期望效果
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
