Skip to content

Commit

Permalink
Merge pull request #112 from sgratzl/release/v4.3.1
Browse files Browse the repository at this point in the history
Release v4.3.1
  • Loading branch information
sgratzl committed Apr 2, 2024
2 parents 0aa1ccc + bcbc203 commit c247c6b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ npm install chart.js @sgratzl/chartjs-chart-boxplot

## Usage

see [Examples](https://sgratzl.com/chartjs-chart-boxplot/examples/)
see [Examples](https://www.sgratzl.com/chartjs-chart-boxplot/examples/)

and [![Open in CodePen][codepen]](https://codepen.io/sgratzl/pen/QxoLoY)

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@sgratzl/chartjs-chart-boxplot",
"description": "Chart.js module for charting boxplots and violin charts",
"version": "4.3.0",
"version": "4.3.1",
"publishConfig": {
"access": "public"
},
Expand Down
4 changes: 2 additions & 2 deletions src/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ function determineStatsOptions(options?: IBaseOptions) {
*/
export function boxplotStats(arr: readonly number[] | Float32Array | Float64Array, options: IBaseOptions): IBoxPlot {
const vs =
window.Float64Array != null && !(arr instanceof Float32Array || arr instanceof Float64Array)
typeof Float64Array !== 'undefined' && !(arr instanceof Float32Array || arr instanceof Float64Array)
? Float64Array.from(arr)
: arr;
const r = boxplots(vs, determineStatsOptions(options));
Expand Down Expand Up @@ -244,7 +244,7 @@ export function violinStats(arr: readonly number[], options: IViolinOptions): IV
return undefined;
}
const vs =
window.Float64Array != null && !(arr instanceof Float32Array || arr instanceof Float64Array)
typeof Float64Array !== 'undefined' && !(arr instanceof Float32Array || arr instanceof Float64Array)
? Float64Array.from(arr)
: arr;
const stats = boxplots(vs, determineStatsOptions(options));
Expand Down

0 comments on commit c247c6b

Please sign in to comment.