Widget:StatsGraph: Difference between revisions
Jump to navigation
Jump to search
m Maybe rotate in different direction? |
m Different line orientation |
||
Line 59: | Line 59: | ||
for (var lineIdx=1;lineIdx<5;lineIdx++) { | for (var lineIdx=1;lineIdx<5;lineIdx++) { | ||
var orientationLine = document.createElementNS(svgNS, 'line'); | var orientationLine = document.createElementNS(svgNS, 'line'); | ||
var lineDistance = lineIdx * | var lineDistance = lineIdx * 75; | ||
var rotate = (degreeSpacing * Math.PI) / 180; | var rotate = (degreeSpacing * Math.PI) / 180; | ||
orientationLine.setAttribute('y1', lineDistance); | orientationLine.setAttribute('y1', lineDistance); |