diff --git a/docs/HistogramView.js b/docs/HistogramView.js
new file mode 100644
index 00000000000..ecfc835da0a
--- /dev/null
+++ b/docs/HistogramView.js
@@ -0,0 +1,25 @@
+class HistogramView {
+
+ constructor() {
+ }
+
+ show(batchcode, div) {
+ fetch(`data/histograms/${batchcode}.json`)
+ .then(response => response.json())
+ .then(json => {
+ const data = json.histograms[3].histogram;
+ new Chart(
+ div.querySelector('#symptomByBatchcodeHisto'),
+ {
+ type: 'bar',
+ data: {
+ datasets: [{
+ label: 'Acquisitions by year',
+ data: data
+ }]
+ }
+ }
+ );
+ });
+ }
+}
\ No newline at end of file
diff --git a/docs/batchCodeTable.html b/docs/batchCodeTable.html
index 03d8e35204d..6af4dc458d5 100644
--- a/docs/batchCodeTable.html
+++ b/docs/batchCodeTable.html
@@ -11,6 +11,7 @@
+