New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

柱状图,选择堆积图,如果有两个图例分组,而其中一个分组的X轴第一坐标对应的点缺失时,会产生堆叠错误 #6861

Closed
sdtazhanghe opened this Issue Oct 18, 2017 · 2 comments

Comments

Projects
None yet
3 participants
@sdtazhanghe

sdtazhanghe commented Oct 18, 2017

One-line summary [问题简述]

柱状图,选择堆积图,如果有两个图例分组,而其中一个分组的X轴第一坐标对应的点缺失时,会产生堆叠错误。缺失分组会自动堆叠到上个X轴数据柱型之上。

Version & Environment [版本及环境]

  • ECharts version [ECharts 版本]:"3.7.1"
  • Browser version [浏览器类型和版本]:版本 60.0.3112.78(正式版本) (64 位)
  • OS Version [操作系统类型和版本]:win7

Expected behaviour [期望结果]

应该让堆叠按照正确的X轴点数据进行堆叠

ECharts option [ECharts配置项]

option ={
"title":{
"text":"简单柱状图标题",
"left":16,
"textStyle":{
"fontSize":14
},
"show":true
},
"tooltip":{
"trigger":"axis",
"axisPointer":{
"type":"shadow"
}
},
"toolbox":{
"show":true,
"feature":{
"dataZoom":{
"yAxisIndex":"none"
},
"dataView":{
"readOnly":false
},
"magicType":{
"type":[
"line",
"bar",
"stack",
"tiled"
]
},
"restore":{
},
"saveAsImage":{
}
}
},
"xAxis":{
"data":[
"审批通过",
"审批中",
"撤回",
"待提交",
"审批拒绝"
],
"nameDefault":"所有人",
"show":true,
"name":"所有人",
"nameLocation":"end"
},
"yAxis":{
"nameDefault":"所属行业",
"show":true,
"name":"所属行业",
"nameLocation":"end"
},
"legend":{
"show":false,
"data":[
"zly13",
"zly0031"
],
"tooltip":{
"show":false
}
},
"series":[
{
"type":"bar",
"stack":"all",
"data":[
[
"审批通过",
33
],
[
"审批中",
154
],
[
"撤回",
33
],
[
"待提交",
187
],
[
"审批拒绝",
33
]
],
"name":"zly13"
},
{
"type":"bar",
"stack":"all",
"data":[
[
"审批中",
66
],
[
"撤回",
200
]
],
"name":"zly0031"
}
],
"grid":{
"top":"65px",
"bottom":"10%",
"normalBottom":"10%",
"dataZoomBottom":"90px",
"containLabel":true
}
}

Other comments [其他信息]

错误的情况
image
X轴第一坐标点加上对应数据则正常
image

@zpz1982

This comment has been minimized.

zpz1982 commented Nov 6, 2017

我也遇到了这个问题, win10, chrome

@100pah 100pah added the bug label Nov 8, 2017

@sdtazhanghe

This comment has been minimized.

sdtazhanghe commented Nov 21, 2017

希望下个迭代能解决啊,被产品经理折磨的不行了。

@100pah 100pah closed this in bf0df08 Feb 8, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment