Added axis label

This commit is contained in:
Max Robinson
2021-02-15 13:15:11 -07:00
parent 5caa653db1
commit 04dcbdc33b
3 changed files with 5 additions and 2 deletions

2
dist/js/bundle.js vendored

File diff suppressed because one or more lines are too long

View File

@@ -5,6 +5,7 @@ const ChartController = require("./ChartController");
class CellsChart extends ChartController { class CellsChart extends ChartController {
constructor() { constructor() {
super("Organism Size / Composition", super("Organism Size / Composition",
"Avg. Number of Cells per Organism",
"Note: to maintain efficiency, species with very small populations are discarded when collecting cell statistics."); "Note: to maintain efficiency, species with very small populations are discarded when collecting cell statistics.");
} }

View File

@@ -1,7 +1,7 @@
const FossilRecord = require("../FossilRecord"); const FossilRecord = require("../FossilRecord");
class ChartController { class ChartController {
constructor(title, note="") { constructor(title, y_axis="", note="") {
this.data = []; this.data = [];
this.chart = new CanvasJS.Chart("chartContainer", { this.chart = new CanvasJS.Chart("chartContainer", {
zoomEnabled: true, zoomEnabled: true,
@@ -9,9 +9,11 @@ class ChartController {
text: title text: title
}, },
axisX:{ axisX:{
title: "Ticks",
minimum: 0, minimum: 0,
}, },
axisY:{ axisY:{
title: y_axis,
minimum: 0, minimum: 0,
}, },
data: this.data data: this.data