Made cell stats more efficient

This commit is contained in:
Max Robinson
2021-02-11 14:07:59 -07:00
parent 9626cd54d6
commit 2e3ad6982d
5 changed files with 21 additions and 8 deletions

View File

@@ -1,7 +1,7 @@
const FossilRecord = require("../FossilRecord");
class ChartController {
constructor(title) {
constructor(title, note="") {
this.data = [];
this.chart = new CanvasJS.Chart("chartContainer", {
zoomEnabled: true,
@@ -11,7 +11,7 @@ class ChartController {
data: this.data
});
this.chart.render();
this.data
$('#chart-note').text(note);
}
setData() {