react-boxplot 模块中异常值的笔画宽度不一致

问题描述

我正在使用 react-boxplot 模块

我想让我的异常值看起来像共享图像中突出显示的环 here

这是我的代码

<Boxplot
            width={BoxplotWidth}
            height={20}
            min={1}
            max={6}
            stats={{
              whiskerLow: 2,quartile1: 2.5,quartile2: 3.5,quartile3: 4.5,whiskerHigh: 6,outliers: [4],}}
            outlierRadius={6}
            outlierStyle={{
              fill: 'transparent',fillOpacity: '0',stroke-width: '1',stroke: 'orange',}}
            BoxStyle={{ fill: '#A3D7CA' }}
            medianStyle={{ stroke: '#3D4E59' }}
          />

但是当我给出笔画宽度和笔画时,然后点击 here 看看会发生什么。

我知道这与 g 标签上的转换属性有关,但我不明白。

提前致谢。

解决方法

我快速阅读了图书馆 - 我不太确定我是否遵循它,但请尝试:

    outlierRadius={1}
    outlierStyle={{
      fill: 'transparent',fill-opacity: '0',stroke-width: '0.03',stroke: 'orange',}}

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...