Skip to content

Commit bc83a4f

Browse files
committed
fix build
1 parent 6a7ed5d commit bc83a4f

File tree

12 files changed

+171
-253
lines changed

12 files changed

+171
-253
lines changed

README.md

Lines changed: 48 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,58 @@ four new types: `boxplot`, `horizontalBoxplot`, `violin`, and `horizontalViolin`
2828
## Config
2929

3030
```typescript
31+
interface IChartJSOptions {
3132
/**
3233
* Limit decimal digits by an optional config option
3334
**/
3435
tooltipDecimals?: number;
36+
37+
boxplot: {
38+
/**
39+
* statistic measure that should be used for computing the minimal data limit
40+
* @default 'min'
41+
*/
42+
minStats: 'min' | 'q1' | 'whiskerMin';
43+
44+
/**
45+
* statistic measure that should be used for computing the maximal data limit
46+
* @default 'max'
47+
*/
48+
maxStats: 'max' | 'q3' | 'whiskerMax';
49+
50+
/**
51+
* from the R doc: this determines how far the plot ‘whiskers’ extend out from
52+
* the box. If coef is positive, the whiskers extend to the most extreme data
53+
* point which is no more than coef times the length of the box away from the
54+
* box. A value of zero causes the whiskers to extend to the data extremes
55+
* @default 1.5
56+
*/
57+
coef: number;
58+
59+
/**
60+
* the method to compute the quantiles.
61+
*
62+
* 7, 'quantiles': the type-7 method as used by R 'quantiles' method.
63+
* 'hinges' and 'fivenum': the method used by R 'boxplot.stats' method.
64+
* 'linear': the interpolation method 'linear' as used by 'numpy.percentile' function
65+
* 'lower': the interpolation method 'lower' as used by 'numpy.percentile' function
66+
* 'higher': the interpolation method 'higher' as used by 'numpy.percentile' function
67+
* 'nearest': the interpolation method 'nearest' as used by 'numpy.percentile' function
68+
* 'midpoint': the interpolation method 'midpoint' as used by 'numpy.percentile' function
69+
* @default 7
70+
*/
71+
quantiles:
72+
| 7
73+
| 'quantiles'
74+
| 'hinges'
75+
| 'fivenum'
76+
| 'linear'
77+
| 'lower'
78+
| 'higher'
79+
| 'nearest'
80+
| 'midpoint'
81+
| ((sortedArr: number[]) => { min: number; q1: number; median: number; q3: number; max: number });
82+
}
3583
```
3684
3785
## Styling
@@ -169,51 +217,7 @@ Both `arrayLinear` and `arrayLogarithmic` support the two additional options to
169217
170218
```typescript
171219
interface IArrayLinearScale {
172-
ticks: {
173-
/**
174-
* statistic measure that should be used for computing the minimal data limit
175-
* @default 'min'
176-
*/
177-
minStats: 'min' | 'q1' | 'whiskerMin';
178-
179-
/**
180-
* statistic measure that should be used for computing the maximal data limit
181-
* @default 'max'
182-
*/
183-
maxStats: 'max' | 'q3' | 'whiskerMax';
184220

185-
/**
186-
* from the R doc: this determines how far the plot ‘whiskers’ extend out from
187-
* the box. If coef is positive, the whiskers extend to the most extreme data
188-
* point which is no more than coef times the length of the box away from the
189-
* box. A value of zero causes the whiskers to extend to the data extremes
190-
* @default 1.5
191-
*/
192-
coef: number;
193-
194-
/**
195-
* the method to compute the quantiles.
196-
*
197-
* 7, 'quantiles': the type-7 method as used by R 'quantiles' method.
198-
* 'hinges' and 'fivenum': the method used by R 'boxplot.stats' method.
199-
* 'linear': the interpolation method 'linear' as used by 'numpy.percentile' function
200-
* 'lower': the interpolation method 'lower' as used by 'numpy.percentile' function
201-
* 'higher': the interpolation method 'higher' as used by 'numpy.percentile' function
202-
* 'nearest': the interpolation method 'nearest' as used by 'numpy.percentile' function
203-
* 'midpoint': the interpolation method 'midpoint' as used by 'numpy.percentile' function
204-
* @default 7
205-
*/
206-
quantiles:
207-
| 7
208-
| 'quantiles'
209-
| 'hinges'
210-
| 'fivenum'
211-
| 'linear'
212-
| 'lower'
213-
| 'higher'
214-
| 'nearest'
215-
| 'midpoint'
216-
| ((sortedArr: number[]) => { min: number; q1: number; median: number; q3: number; max: number });
217221
};
218222
}
219223
```

rollup.config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export default [
99
input: 'src/bundle.js',
1010
output: {
1111
file: 'build/Chart.BoxPlot.js',
12-
name: 'ChartGeo',
12+
name: 'ChartBoxPlot',
1313
format: 'umd',
1414
globals: {
1515
'chart.js': 'Chart',
@@ -22,13 +22,13 @@ export default [
2222
input: 'src/index.js',
2323
output: {
2424
file: 'build/Chart.BoxPlot.esm.js',
25-
name: 'ChartGeo',
25+
name: 'ChartBoxPlot',
2626
format: 'esm',
2727
globals: {
2828
'chart.js': 'Chart',
2929
},
3030
},
31-
external: ['chart.js', '@babel/runtime', 'd3-geo', 'd3-scale-chromatic', 'topojson-client'],
31+
external: ['chart.js', '@babel/runtime', '@sgratzl/science.js'],
3232
plugins: [commonjs(), pnp(), resolve()],
3333
},
3434
];

src/animation.js

Whitespace-only changes.

src/bundle.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export * from '.';
2+
3+
// import {} from './controllers';

src/controllers/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export * from './boxplot';
2+
export * from './violin';

0 commit comments

Comments
 (0)