Widget:StatsGraph: Difference between revisions
Jump to navigation
Jump to search
m Another typo |
m Maybe rotate in different direction? |
||
Line 60: | Line 60: | ||
var orientationLine = document.createElementNS(svgNS, 'line'); | var orientationLine = document.createElementNS(svgNS, 'line'); | ||
var lineDistance = lineIdx * -75; | var lineDistance = lineIdx * -75; | ||
var rotate = ( | var rotate = (degreeSpacing * Math.PI) / 180; | ||
orientationLine.setAttribute('y1', lineDistance); | orientationLine.setAttribute('y1', lineDistance); | ||
orientationLine.setAttribute('x2', lineDistance*Math.sin(rotate)); | orientationLine.setAttribute('x2', lineDistance*Math.sin(rotate)); |