Skip to content
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

[Bug] PivotChart indicatorsAsCol为true时数据显示反了 #1915

Closed
a1419735487 opened this issue Jun 13, 2024 · 1 comment
Closed

[Bug] PivotChart indicatorsAsCol为true时数据显示反了 #1915

a1419735487 opened this issue Jun 13, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@a1419735487
Copy link

Version

1.3.0

Link to Minimal Reproduction

-1

Steps to Reproduce

img_v3_02bq_219d941e-7c74-42d2-94d6-f54b9a5bb01g

Current Behavior

{
"indicators": [
{
"indicatorKey": "indicator_val_0",
"chartSpec": {
"series": [
{
"xField": "indicator_val_0",
"data": {
"id": "e0045e5fa98d4ba78218743ff90bae34",
},
"yField": [
"region",
"indicator_key_0"
],
"type": "bar",
"direction": "horizontal",
"width": "auto",
"size": 18,
}
],
"type": "common",
"size": 18,
},
"cellType": "chart",
"chartModule": "vchart",
"style": {
"padding": 1
}
}
],
"indicatorsAsCol": true,
"records": [
{
"colorset_2": "数量",
"indicator_title_0": "数量",
"color_set_name": "数量",
"col_fld_tmp_zb_3": "5566",
"col_fld_tmp_zb_3_title": "数量",
"indicator_key_0": "数量",
"segmentation": "消费者",
"series_field_01": "数量 ",
"region": "华东",
"indicator_val_0": "5566"
},
{
"colorset_2": "数量",
"indicator_title_0": "数量",
"color_set_name": "数量",
"col_fld_tmp_zb_3": "2674",
"col_fld_tmp_zb_3_title": "数量",
"indicator_key_0": "数量",
"segmentation": "消费者",
"series_field_01": "数量 ",
"region": "华北",
"indicator_val_0": "2674"
},
{
"colorset_2": "数量",
"indicator_title_0": "数量",
"color_set_name": "数量",
"col_fld_tmp_zb_3": "3246",
"col_fld_tmp_zb_3_title": "数量",
"indicator_key_0": "数量",
"segmentation": "消费者",
"series_field_01": "数量 ",
"region": "东北",
"indicator_val_0": "3246"
},
{
"colorset_2": "数量",
"indicator_title_0": "数量",
"color_set_name": "数量",
"col_fld_tmp_zb_3": "1804",
"col_fld_tmp_zb_3_title": "数量",
"indicator_key_0": "数量",
"segmentation": "消费者",
"series_field_01": "数量 ",
"region": "西南",
"indicator_val_0": "1804"
},
{
"colorset_2": "数量",
"indicator_title_0": "数量",
"color_set_name": "数量",
"col_fld_tmp_zb_3": "4869",
"col_fld_tmp_zb_3_title": "数量",
"indicator_key_0": "数量",
"segmentation": "消费者",
"series_field_01": "数量 ",
"region": "中南",
"indicator_val_0": "4869"
},
{
"colorset_2": "数量",
"indicator_title_0": "数量",
"color_set_name": "数量",
"col_fld_tmp_zb_3": "1014",
"col_fld_tmp_zb_3_title": "数量",
"indicator_key_0": "数量",
"segmentation": "消费者",
"series_field_01": "数量 ",
"region": "西北",
"indicator_val_0": "1014"
}
],
"widthMode": "standard",
"heightMode": "standard",
"autoFillWidth": true,
"autoFillHeight": true,
"axes": [
{
"orient": "left",
"visible": true,
"zero": true,
"sampling": false,
},
{
"orient": "bottom",
"visible": true,
"zero": true,
"nice": true,
"sampling": false,
},
],
}

Expected Behavior

-1

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

@a1419735487 a1419735487 added the bug Something isn't working label Jun 13, 2024
@fangsmile fangsmile self-assigned this Jun 14, 2024
@fangsmile
Copy link
Contributor

请将vchart 相关spec配置中的"direction": "horizontal", 设置在series外层

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants