styling
This commit is contained in:
@@ -33,7 +33,7 @@ class AdverseReactionReportsChartView {
|
||||
'Deaths',
|
||||
'Disabilities',
|
||||
'Life Threatening Illnesses',
|
||||
'Other Adverse Reaction Reports'
|
||||
'Other Adverse Events'
|
||||
],
|
||||
datasets: [{
|
||||
// FK-TODO: refactor
|
||||
|
||||
@@ -1,14 +1,12 @@
|
||||
class BatchCodeDetailsView {
|
||||
|
||||
#uiContainer;
|
||||
#headingElement;
|
||||
#adverseReactionReportsChartView;
|
||||
#histogramChartView;
|
||||
#chartWithSlider;
|
||||
|
||||
constructor(uiContainer) {
|
||||
this.#uiContainer = uiContainer
|
||||
this.#headingElement = this.#uiContainer.querySelector(".heading");
|
||||
this.#adverseReactionReportsChartView = new AdverseReactionReportsChartView(this.#uiContainer.querySelector('#adverseReactionReportsChartView'));
|
||||
this.#chartWithSlider = this.#uiContainer.querySelector('.chartWithSlider');
|
||||
this.#histogramChartView = new HistogramChartView(this.#chartWithSlider.querySelector("canvas"));
|
||||
@@ -32,15 +30,10 @@ class BatchCodeDetailsView {
|
||||
}
|
||||
|
||||
#displayHistogramViewForHistoDescrs(histoDescrs) {
|
||||
this.#displayHeading(histoDescrs.batchcode);
|
||||
this.#displayAdverseReactionReportsChart(histoDescrs);
|
||||
this.#displayHistogram(histoDescrs);
|
||||
}
|
||||
|
||||
#displayHeading(batchcode) {
|
||||
this.#headingElement.textContent = `Frequencies of reported Symptoms for Batch Code ${batchcode}`
|
||||
}
|
||||
|
||||
#displayAdverseReactionReportsChart(histoDescrs) {
|
||||
this.#adverseReactionReportsChartView.displayChart(histoDescrs);
|
||||
}
|
||||
|
||||
@@ -49762,16 +49762,15 @@
|
||||
</select>
|
||||
</p>
|
||||
<div id="batchCodeDetails" style="width: 50%">
|
||||
<h3>Results or Outcomes of Adverse Events</h3>
|
||||
<canvas id="adverseReactionReportsChartView"></canvas>
|
||||
<h3 class="heading"></h3>
|
||||
<div id="selectBatchcodeCombination">
|
||||
<div class="chartWithSlider">
|
||||
<div class="chartContainer">
|
||||
<canvas class="canvas"></canvas>
|
||||
</div>
|
||||
<div class="sliderContainer">
|
||||
<div class="slider"></div>
|
||||
</div>
|
||||
<h3>Frequencies of Reported Symptoms</h3>
|
||||
<div class="chartWithSlider">
|
||||
<div class="chartContainer">
|
||||
<canvas class="canvas"></canvas>
|
||||
</div>
|
||||
<div class="sliderContainer">
|
||||
<div class="slider"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user