Welcome to IOPWiki, Commander.
With the release of the new game, we encourage contributions to topics related to Girls' Frontline 2. Learn how to contribute, read the maintenance guide, and join our Discord server to discuss major changes.
If you or someone you know can help deciphering the game files, contact our administrator.

Widget:StatsGraph: Difference between revisions

Welcome to IOP Wiki. This website is maintained by the Girls' Frontline community and is free to edit by anyone.
Jump to navigation Jump to search
m Fixed some variable names
Removed logging
Line 5: Line 5:
   var oldY = (max-min) == 0 ? 0 : (300 / (max-min)) * (val - min);
   var oldY = (max-min) == 0 ? 0 : (300 / (max-min)) * (val - min);
    
    
   if (attr == 0) {
   if (degree == 0) {
     return [oldX, Math.floor(oldY)];
     return [oldX, Math.floor(oldY)];
   }
   }
Line 35: Line 35:
   svg.setAttribute('preserveAspectRatio', "none");
   svg.setAttribute('preserveAspectRatio', "none");
   svg.setAttribute('version', "1.1");
   svg.setAttribute('version', "1.1");
   console.log(dataComplete);
    
   /* Inline styling; maybe export to common.css? */
   /* Inline styling; maybe export to common.css? */
   var style = document.createElementNS(svgNS, 'style');
   var style = document.createElementNS(svgNS, 'style');
Line 100: Line 100:
     gDrawing.appendChild(datapresentation);
     gDrawing.appendChild(datapresentation);
   }
   }
    
    
   svg.appendChild(gDrawing);
   svg.appendChild(gDrawing);

Revision as of 12:18, 2 October 2019