Forum Discussion
EstherGrandal_D
7 years agoQrew Cadet
Hi, I did what is supposed I should be doing but I am no able to make it works.
This is the "paste" I used,
(function(){
var querystring=document.location.search;
var urlChart = URLRoot() &"db/bniy76a59?a=q&qid=11";
$(win.document).ready(function() {
console.log("hi");
setTimeout(function() {
var injectedScript = "<script>";
injectedScript += "var chart = Highcharts.Chart[0];";
injectedScript += "var options = chart.options;";
injectedScript += "chart.destroy();";
injectedScript += "options.yAxis[0].min = 0;";
injectedScript += "options.yAxis[0].max = 80;";
injectedScript += "new Highcharts.Chart(options);";
injectedScript += "</script>";
win.$(win.document.body).append(injectedScript);
}, 2000);
});
})();
If any one was able to made it work I would be thankful to get the script he used
Thanks.
This is the "paste" I used,
(function(){
var querystring=document.location.search;
var urlChart = URLRoot() &"db/bniy76a59?a=q&qid=11";
$(win.document).ready(function() {
console.log("hi");
setTimeout(function() {
var injectedScript = "<script>";
injectedScript += "var chart = Highcharts.Chart[0];";
injectedScript += "var options = chart.options;";
injectedScript += "chart.destroy();";
injectedScript += "options.yAxis[0].min = 0;";
injectedScript += "options.yAxis[0].max = 80;";
injectedScript += "new Highcharts.Chart(options);";
injectedScript += "</script>";
win.$(win.document.body).append(injectedScript);
}, 2000);
});
})();
If any one was able to made it work I would be thankful to get the script he used
Thanks.
_anomDiebolt_
7 years agoQrew Elite
You are mixing QuickBase formula language into the JavaScript with this statement:
var urlChart = URLRoot() &"db/bniy76a59?a=q&qid=11"
You may have other problems but I can't tell from your message.
var urlChart = URLRoot() &"db/bniy76a59?a=q&qid=11"
You may have other problems but I can't tell from your message.