Added axis label
This commit is contained in:
2
dist/js/bundle.js
vendored
2
dist/js/bundle.js
vendored
File diff suppressed because one or more lines are too long
@@ -5,6 +5,7 @@ const ChartController = require("./ChartController");
|
||||
class CellsChart extends ChartController {
|
||||
constructor() {
|
||||
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.");
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
const FossilRecord = require("../FossilRecord");
|
||||
|
||||
class ChartController {
|
||||
constructor(title, note="") {
|
||||
constructor(title, y_axis="", note="") {
|
||||
this.data = [];
|
||||
this.chart = new CanvasJS.Chart("chartContainer", {
|
||||
zoomEnabled: true,
|
||||
@@ -9,9 +9,11 @@ class ChartController {
|
||||
text: title
|
||||
},
|
||||
axisX:{
|
||||
title: "Ticks",
|
||||
minimum: 0,
|
||||
},
|
||||
axisY:{
|
||||
title: y_axis,
|
||||
minimum: 0,
|
||||
},
|
||||
data: this.data
|
||||
|
||||
Reference in New Issue
Block a user