Chart Aspect Ratio can be modified. Not Working Yet.

This commit is contained in:
Luis Fernando Molina committed 2018-06-28 14:38:40 +02:00
1 parent a22a16b500
commit f988799004
10 files changed
+168 -70

No files matched your search

+8
View File
@@ -28,6 +28,8 @@ GLOBAL.CUSTOM_FAIL_RESPONSE = {
message: "Custom Message"
};
let browserCanvas; // This is the canvas object of the browser.
function spacePad(str, max) {
str = str.toString();
return str.length < max ? spacePad(" " + str, max) : str;
@@ -54,6 +56,12 @@ function loadAdvancedAlgosPlatform() {
let body = document.getElementsByTagName("body")[0];
body.appendChild(canvas);
browserCanvas = document.getElementById('canvas');
browserCanvas.width = window.innerWidth;
browserCanvas.height = window.innerHeight;
browserCanvas.style.border = "none";
/* The second thing to do is to send the tokenSession to the server, so that it can prepare the server side data structures needed. */
let sessionToken = window.SESSION_TOKEN;