JQPLOT - Access external variable
up vote
-1
down vote
favorite
Variable will be returned in this below function:
var angVal = function () {
return 10;
}
jqplot axes label will be printed in the below code. not able to access angVal in the jqplot under tickOptions
return $.jqplot(divid, data, {
axes: {
xaxis: {
tickOptions: {
angle: angVal,
},
ticks: ticks,
},
yaxis: {
padMin: 0,
min: 0,
label: ylabel,
tickOptions: {
formatString: "%'0.0f"
}
}
}
});
can anyone please help us on this
javascript charts jqplot
add a comment |
up vote
-1
down vote
favorite
Variable will be returned in this below function:
var angVal = function () {
return 10;
}
jqplot axes label will be printed in the below code. not able to access angVal in the jqplot under tickOptions
return $.jqplot(divid, data, {
axes: {
xaxis: {
tickOptions: {
angle: angVal,
},
ticks: ticks,
},
yaxis: {
padMin: 0,
min: 0,
label: ylabel,
tickOptions: {
formatString: "%'0.0f"
}
}
}
});
can anyone please help us on this
javascript charts jqplot
add a comment |
up vote
-1
down vote
favorite
up vote
-1
down vote
favorite
Variable will be returned in this below function:
var angVal = function () {
return 10;
}
jqplot axes label will be printed in the below code. not able to access angVal in the jqplot under tickOptions
return $.jqplot(divid, data, {
axes: {
xaxis: {
tickOptions: {
angle: angVal,
},
ticks: ticks,
},
yaxis: {
padMin: 0,
min: 0,
label: ylabel,
tickOptions: {
formatString: "%'0.0f"
}
}
}
});
can anyone please help us on this
javascript charts jqplot
Variable will be returned in this below function:
var angVal = function () {
return 10;
}
jqplot axes label will be printed in the below code. not able to access angVal in the jqplot under tickOptions
return $.jqplot(divid, data, {
axes: {
xaxis: {
tickOptions: {
angle: angVal,
},
ticks: ticks,
},
yaxis: {
padMin: 0,
min: 0,
label: ylabel,
tickOptions: {
formatString: "%'0.0f"
}
}
}
});
can anyone please help us on this
javascript charts jqplot
javascript charts jqplot
edited Nov 7 at 12:57
AS Mackay
1,6913816
1,6913816
asked Nov 7 at 10:34
Ashwin Kumar
1
1
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53187709%2fjqplot-access-external-variable%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown