-
Notifications
You must be signed in to change notification settings - Fork 297
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
An extrenal file Json #176
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
i am tring to import the name of my extrenal Json file by the url so i have change the script of the Radial Graph i need your help to say to me where is the error please
var labelType, useGradients, nativeTextSupport, animate;
(function() {
var ua = navigator.userAgent,
iStuff = ua.match(/iPhone/i) || ua.match(/iPad/i),
typeOfCanvas = typeof HTMLCanvasElement,
nativeCanvasSupport = (typeOfCanvas == 'object' || typeOfCanvas == 'function'),
textSupport = nativeCanvasSupport
&& (typeof document.createElement('canvas').getContext('2d').fillText == 'function');
//I'm setting this based on the fact that ExCanvas provides text support for IE
//and that as of today iPhone/iPad current text support is lame
labelType = (!nativeCanvasSupport || (textSupport && !iStuff))? 'Native' : 'HTML';
nativeTextSupport = labelType == 'Native';
useGradients = nativeCanvasSupport;
animate = !(iStuff || !nativeCanvasSupport);
})();
var Log = {
elem: false,
write: function(text){
if (!this.elem)
this.elem = document.getElementById('log');
this.elem.innerHTML = text;
this.elem.style.left = (500 - this.elem.offsetWidth / 2) + 'px';
}
};
function init(){
var pathArray = window.location.search.split( '?' );
var ref=pathArray[1];
var key = ref[4]+ref[5];
var json = $.getJSON("Data/"+key+".json", function(json) {
// console.log(json);
// data is a JavaScript object now. Handle it as such
console.log(json);
//init RGraph
var rgraph = new $jit.RGraph({
//Where to append the visualization
injectInto: 'infovis',
//Optional: create a background canvas that plots
//concentric circles.
//parent box title heights
+"
<div class="tip-title"> Aspect:" +node.aspect+"<div class="tip-text">";
});
}
The text was updated successfully, but these errors were encountered: