[Bug] vtable透视玫瑰图图例显示不正确,同配置饼图(仅将type改为pie)显示正常
Version
0.25.2
Link to Minimal Reproduction
-1
Steps to Reproduce
Current Behavior
{ "columnTree": [ { "dimensionKey": "col_fld_tmp_mg_1", "value": "重庆" }, { "dimensionKey": "col_fld_tmp_mg_1", "value": "江苏" } ], "columns": [ { "dimensionKey": "col_fld_tmp_mg_1", "title": "省份", "headerStyle": { "textAlign": "center" } } ], "rowTree": [], "rows": [], "indicators": [ { "indicatorKey": "col_fld_tmp_zb_3", "tooltipField": [ { "value": "性别", "key": "col_fld_tmp_mg_2" }, { "value": "金额", "key": "col_fld_tmp_zb_3" } ], "chartSpec": { "categoryField": "col_fld_tmp_mg_2", "data": { "id": "cec3833468094cc6af9c6a6b517e3687", "fields": { "col_fld_tmp_mg_2": { "sortIndex": 1, "domain": [ "女", "男" ] } } }, "scales": [ { "domain": [ "女", "男" ], "id": "color", "type": "ordinal", "range": [ "#1664FF", "#1AC6FF" ] } ], "type": "rose", "valueField": "col_fld_tmp_zb_3", "size": 12, "rose": { "style": { "fillOpacity": 0.8 } }, "tooltip": { "mark": { "content": [ { "key": "性别" }, { "key": "金额" } ] } } }, "title": "", "labelField": [], "cellType": "chart", "chartModule": "vchart", "headerStyle": { "borderLineWidth": [ 1, 0, 1, 0 ], "autoWrapText": true }, "style": { "padding": 1 } } ], "indicatorsAsCol": false, "records": [ { "col_fld_tmp_zb_3": 3336830.96, "col_fld_tmp_mg_2": "女", "col_fld_tmp_mg_1": "重庆", "col_fld_tmp_zb_3_title": "金额" }, { "col_fld_tmp_zb_3": 3260923.33, "col_fld_tmp_mg_2": "男", "col_fld_tmp_mg_1": "江苏", "col_fld_tmp_zb_3_title": "金额" }, { "col_fld_tmp_zb_3": 2921544.3, "col_fld_tmp_mg_2": "女", "col_fld_tmp_mg_1": "江苏", "col_fld_tmp_zb_3_title": "金额" }, { "col_fld_tmp_zb_3": 2962641.6, "col_fld_tmp_mg_2": "男", "col_fld_tmp_mg_1": "重庆", "col_fld_tmp_zb_3_title": "金额" } ], "corner": { "titleOnDimension": "row" }, "autoWrapText": true, "widthMode": "standard", "heightMode": "standard", "autoFillWidth": true, "autoFillHeight": true, "defaultHeaderRowHeight": 40, "axes": [ { "orient": "left", "visible": true, "zero": true, "nice": true, "label": { "visible": true, "style": { "fontSize": 12 } }, "title": { "angle": 0, "style": { "fontSize": 12, "direction": "vertical" } } }, { "orient": "right", "visible": true, "zero": true, "nice": true, "label": { "visible": true, "style": { "fontSize": 12 } }, "title": { "angle": 0, "style": { "fontSize": 12, "direction": "vertical" } } }, { "orient": "bottom", "visible": true, "zero": true, "nice": true, "label": { "style": { "fontSize": 12 } }, "title": { "style": { "fontSize": 12 } } }, { "orient": "top", "visible": true, "zero": true, "nice": true, "label": { "style": { "fontSize": 12 } }, "title": { "style": { "fontSize": 12 } } } ], "legends": { "orient": "right", "type": "discrete", "maxRow": 1, "maxCol": 1, "allowAllCanceled": false, "data": [ { "label": "女", "shape": { "fill": "#1664FF", "symbolType": "square" } }, { "label": "男", "shape": { "fill": "#1AC6FF", "symbolType": "square" } } ], "item": { "label": { "style": { "fontSize": 12 } } } }, "columnResizeMode": "body", "defaultHeaderColWidth": 0, "theme": { "defaultStyle": { "fontSize": 12 }, "bodyStyle": { "borderColor": "rgba(9,30,64,.15)", "borderLineWidth": [ 1, 0, 0, 0 ] }, "headerStyle": { "borderColor": "rgba(9,30,64,.15)", "borderLineWidth": [ 0, 0, 0, 0 ], "hover": { "cellBgColor": "#CCE0FF" } }, "rowHeaderStyle": { "borderColor": "rgba(9,30,64,.15)", "borderLineWidth": [ 1, 0, 1, 0 ], "hover": { "cellBgColor": "" } }, "cornerHeaderStyle": { "borderColor": "rgba(9,30,64,.15)", "borderLineWidth": [ 0, 0, 1, 0 ], "hover": { "cellBgColor": "" } }, "cornerRightTopCellStyle": { "borderColor": "rgba(9,30,64,.15)", "borderLineWidth": [ 0, 0, 1, 1 ], "hover": { "cellBgColor": "" } }, "cornerLeftBottomCellStyle": { "borderColor": "rgba(9,30,64,.15)", "borderLineWidth": [ 1, 1, 0, 0 ], "hover": { "cellBgColor": "" } }, "cornerRightBottomCellStyle": { "borderColor": "rgba(9,30,64,.15)", "borderLineWidth": [ 1, 0, 0, 1 ], "hover": { "cellBgColor": "" } }, "rightFrozenStyle": { "borderColor": "rgba(9,30,64,.15)", "borderLineWidth": [ 1, 0, 1, 1 ], "hover": { "cellBgColor": "" } }, "bottomFrozenStyle": { "borderColor": "rgba(9,30,64,.15)", "borderLineWidth": [ 1, 1, 0, 1 ], "hover": { "cellBgColor": "" } }, "selectionStyle": { "cellBgColor": "", "cellBorderColor": "" }, "frameStyle": { "borderLineWidth": 0 }, "scrollStyle": { "visible": "always", "width": 5 } } }
Expected Behavior
修复
Environment
No response
Any additional comments?
No response