问题描述
我正在使用 react-boxplot 模块
这是我的代码
<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 看看会发生什么。
提前致谢。
解决方法
我快速阅读了图书馆 - 我不太确定我是否遵循它,但请尝试:
outlierRadius={1}
outlierStyle={{
fill: 'transparent',fill-opacity: '0',stroke-width: '0.03',stroke: 'orange',}}