Widget:StatsGraph: Difference between revisions
Jump to navigation
Jump to search
Removed inline style and turned graph upside down |
Changed styling for common.css |
||
Line 80: | Line 80: | ||
var datapresentation = document.createElementNS(svgNS, 'polygon'); | var datapresentation = document.createElementNS(svgNS, 'polygon'); | ||
datapresentation.setAttribute('class', polygonParams.class); | datapresentation.setAttribute('class', polygonParams.class); | ||
datapresentation.setAttribute('points', buildPolygonString(polygonParams.data)); | datapresentation.setAttribute('points', buildPolygonString(polygonParams.data)); | ||
gDrawing.appendChild(datapresentation); | gDrawing.appendChild(datapresentation); | ||
Line 105: | Line 103: | ||
|data=[ | |data=[ | ||
{ | { | ||
"class": " | "class": "graph-orange", | ||
"data": [ | "data": [ | ||
{ | { | ||
Line 128: | Line 126: | ||
}, | }, | ||
{ | { | ||
"class": " | "class": "graph-blue", | ||
"data": [ | "data": [ | ||
{ | { |