mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-12-29 02:11:12 -06:00
Moved settings so they can be changed each round.
This commit is contained in:
parent
8d209f673c
commit
4eda75caea
@ -7,6 +7,16 @@ function chartCallback() {
|
|||||||
|
|
||||||
function drawAccountChart() {
|
function drawAccountChart() {
|
||||||
|
|
||||||
|
|
||||||
|
$.each($('.homeChart'), function (i, v) {
|
||||||
|
var obj = $(v);
|
||||||
|
var accountID = obj.data('id').toString();
|
||||||
|
var holderID = $(v).attr('id').toString();
|
||||||
|
console.log('AccountID: ' + accountID + ', ' + 'holderID ' + holderID);
|
||||||
|
var URL = 'chart/home/' + accountID;
|
||||||
|
console.log('URL: ' + URL);
|
||||||
|
|
||||||
|
|
||||||
var opt = {
|
var opt = {
|
||||||
curveType: 'function',
|
curveType: 'function',
|
||||||
legend: {
|
legend: {
|
||||||
@ -18,16 +28,10 @@ function drawAccountChart() {
|
|||||||
width: '90%',
|
width: '90%',
|
||||||
height: 180
|
height: 180
|
||||||
},
|
},
|
||||||
height: 230
|
height: 230,
|
||||||
|
lineWidth: 1
|
||||||
};
|
};
|
||||||
|
|
||||||
$.each($('.homeChart'), function (i, v) {
|
|
||||||
var obj = $(v);
|
|
||||||
var accountID = obj.data('id').toString();
|
|
||||||
var holderID = $(v).attr('id').toString();
|
|
||||||
console.log('AccountID: ' + accountID + ', ' + 'holderID ' + holderID);
|
|
||||||
var URL = 'chart/home/' + accountID;
|
|
||||||
console.log('URL: ' + URL);
|
|
||||||
|
|
||||||
// draw it!
|
// draw it!
|
||||||
drawChart('#' + holderID, URL, opt);
|
drawChart('#' + holderID, URL, opt);
|
||||||
|
Loading…
Reference in New Issue
Block a user