echarts-theme-builder icon indicating copy to clipboard operation
echarts-theme-builder copied to clipboard

盒须图的主题配置

Open TiiJeiJ8 opened this issue 6 months ago • 0 comments

"boxplot": {
        "itemStyle": {
            "borderWidth": 0,
            "borderColor": "#ccc"
        }
    },

这是官方对于盒须图的itemStyle字段的配置 但这会导致盒须图在主题下的框体不可见且内部填充色为白色,无法正常显示相关图表需要传达的信息。

"boxplot": {
        "itemStyle": {
            "color": "none",
            "borderWidth": 1.3,
            "borderColor": "auto"
        }
    },

如上,通过配置color为空,框体厚度及框体颜色为auto来适配主题下color不同调色卡,从而能够正常绘制盒须图。

TiiJeiJ8 avatar Jul 18 '25 11:07 TiiJeiJ8