Skip to content

Commit a4baea3

Browse files
authored
Merge pull request #23 from pfizer-opensource/update-codebase
Fix HistogramRenderer
2 parents a7c701f + 7d4e222 commit a4baea3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
"main": "./src/index.js",
66
"type": "module",
77
"scripts": {
8-
"postinstall": "webpack --mode production",
98
"build:dev": "webpack --mode development",
109
"build:prod": "webpack --mode production",
10+
"postinstall": "npm run build:prod",
1111
"watch": "webpack --mode development --watch",
1212
"lint": "eslint 'src/**/*.{js,jsx}' --max-warnings=0",
1313
"lint:fix": "eslint 'src/**/*.{js,jsx}' --fix",

src/graphs/histogram/HistogramRenderer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class HistogramRenderer extends Renderer {
1010
#binnedData;
1111
#noOfBins = 10;
1212
#yAccessor = (d) => d.length;
13-
#xAccessor = (d) => d.noOfDays;
13+
#xAccessor = (d) => d.leadTime;
1414
xAxisLabel = '# of delivery days';
1515
yAxisLabel = '# of tickets';
1616

0 commit comments

Comments
 (0)