From 10db79b9842e79108dfe9f9162fc062690074548 Mon Sep 17 00:00:00 2001 From: Kenneth Jao Date: Sat, 3 Feb 2018 23:37:37 -0500 Subject: [PATCH] chart labelling --- SmearcarDB/static/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/SmearcarDB/static/index.js b/SmearcarDB/static/index.js index 20cab14..8ebe281 100644 --- a/SmearcarDB/static/index.js +++ b/SmearcarDB/static/index.js @@ -205,7 +205,7 @@ function generateDropOp() { // For options that change based on data. yAxes: [{ scaleLabel: { display: true, - labelString: "Phoneme", + labelString: "Phoneme (%)", fontFamily: "'Open Sans Condensed', sans-serif", fontSize: 20, padding: 4 @@ -213,6 +213,9 @@ function generateDropOp() { // For options that change based on data. ticks: { fontFamily: "'Open Sans Condensed', sans-serif", fontSize: 20, + callback: function(value) { + return value + "%"; + } } }], xAxes: [{