|
@ -1,13 +1,11 @@ |
|
|
var DOMutil = require('../../../DOMutil'); |
|
|
var DOMutil = require('../../../DOMutil'); |
|
|
var Points = require('./points'); |
|
|
var Points = require('./points'); |
|
|
|
|
|
|
|
|
function Bargraph(groupId, options) { |
|
|
|
|
|
|
|
|
function Bargraph(groupId, options) { // eslint-disable-line no-unused-vars
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
Bargraph.drawIcon = function (group, x, y, iconWidth, iconHeight, framework) { |
|
|
Bargraph.drawIcon = function (group, x, y, iconWidth, iconHeight, framework) { |
|
|
var fillHeight = iconHeight * 0.5; |
|
|
var fillHeight = iconHeight * 0.5; |
|
|
var path, fillPath; |
|
|
|
|
|
|
|
|
|
|
|
var outline = DOMutil.getSVGElement("rect", framework.svgElements, framework.svg); |
|
|
var outline = DOMutil.getSVGElement("rect", framework.svgElements, framework.svg); |
|
|
outline.setAttributeNS(null, "x", x); |
|
|
outline.setAttributeNS(null, "x", x); |
|
|
outline.setAttributeNS(null, "y", y - fillHeight); |
|
|
outline.setAttributeNS(null, "y", y - fillHeight); |
|
@ -108,7 +106,6 @@ Bargraph.draw = function (groupIds, processedGroupData, framework) { |
|
|
} |
|
|
} |
|
|
else { |
|
|
else { |
|
|
var nextKey = i + (intersections[key].amount - intersections[key].resolved); |
|
|
var nextKey = i + (intersections[key].amount - intersections[key].resolved); |
|
|
var prevKey = i - (intersections[key].resolved + 1); |
|
|
|
|
|
if (nextKey < combinedData.length) { |
|
|
if (nextKey < combinedData.length) { |
|
|
coreDistance = Math.abs(combinedData[nextKey].screen_x - key); |
|
|
coreDistance = Math.abs(combinedData[nextKey].screen_x - key); |
|
|
} |
|
|
} |
|
|