From 4eda75caea742227f520f272865897c09b05bd5d Mon Sep 17 00:00:00 2001 From: James Cole Date: Mon, 7 Jul 2014 08:18:56 +0200 Subject: [PATCH] Moved settings so they can be changed each round. --- public/assets/javascript/index.js | 32 +++++++++++++++++-------------- 1 file changed, 18 insertions(+), 14 deletions(-) diff --git a/public/assets/javascript/index.js b/public/assets/javascript/index.js index 0ad0da4a3a..a12e1ba816 100644 --- a/public/assets/javascript/index.js +++ b/public/assets/javascript/index.js @@ -7,19 +7,6 @@ function chartCallback() { function drawAccountChart() { - var opt = { - curveType: 'function', - legend: { - position: 'none' - }, - chartArea: { - left: 50, - top: 10, - width: '90%', - height: 180 - }, - height: 230 - }; $.each($('.homeChart'), function (i, v) { var obj = $(v); @@ -29,8 +16,25 @@ function drawAccountChart() { var URL = 'chart/home/' + accountID; console.log('URL: ' + URL); + + var opt = { + curveType: 'function', + legend: { + position: 'none' + }, + chartArea: { + left: 50, + top: 10, + width: '90%', + height: 180 + }, + height: 230, + lineWidth: 1 + }; + + // draw it! - drawChart('#' + holderID,URL, opt); + drawChart('#' + holderID, URL, opt); }); //var URL = 'chart/home';