Function: createBoxplot()
createBoxplot(
props):BoxplotDataProps
Defined in: packages/echarts/src/boxplot/utils.ts:90
Create a boxplot from a list of numbers and option boundIQR (1.5 or 3.0)
Parameters
props
The properties object containing:
Returns
The boxplot data containing statistical properties and mean points
Example: single boxplot
const data = {
'samples': [1, 2, 3, 4, 5],
};
const boundIQR = 1.5;
const boxplotData = createBoxplot({data, boundIQR});
Example: multiple boxplots
const data = {
'samples': [1, 2, 3, 4, 5],
'samples2': [6, 7, 8, 9, 10],
};
const boundIQR = 1.5;
const boxplotData = createBoxplot({data, boundIQR});