VChart
VChart copied to clipboard
[Bug] boxPlot outliersField not work
Version
1
Link to Minimal Reproduction
1
Steps to Reproduce
https://visactor.io/vchart/demo/box-plot/basic-box-plot
const data = [
{
id: 'boxPlot',
}
];
const spec = {
type: 'boxPlot',
data: data,
xField: 'x',
minField: 'y1',
q1Field: 'y2',
medianField: 'y3',
q3Field: 'y4',
maxField: 'y5',
outliersField: 'y6',
direction: 'vertical',
boxPlot: {
style: {
// boxWidth: 50, // 不指定则自适应宽度
// shaftWidth: 60,
shaftShape: 'line',
lineWidth: 2
}
}
};
const vchart = new VChart(spec, { dom: CONTAINER_ID });
vchart.renderSync();
vchart.updateDataSync('boxPlot',
[{
x: 'Sub-Saharan Africa',
y1: 8.72,
y2: 9.73,
y3: 10.17,
y4: 10.51,
y5: 11.64,
'y6': [12.01, 12.02, 14.03]
},
{
x: 'South Asia',
y1: 9.4,
y2: 10.06,
y3: 10.75,
y4: 11.56,
y5: 12.5
}]);
// Just for the convenience of console debugging, DO NOT COPY!
window['vchart'] = vchart;
updateData的方式outliersField设置无效
Current Behavior
1
Expected Behavior
1
Environment
- OS:
- Browser:
- Framework:
Any additional comments?
No response