We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
1.3.0
-1
{ "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, }, ], }
- OS: - Browser: - Framework:
No response
The text was updated successfully, but these errors were encountered:
请将vchart 相关spec配置中的"direction": "horizontal", 设置在series外层
Sorry, something went wrong.
fangsmile
No branches or pull requests
Version
1.3.0
Link to Minimal Reproduction
-1
Steps to Reproduce
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
Any additional comments?
No response
The text was updated successfully, but these errors were encountered: