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 {
|
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.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user