|
@ -23,13 +23,12 @@ Bargraph.drawIcon = function (group, x, y, iconWidth, iconHeight, framework) { |
|
|
|
|
|
|
|
|
DOMutil.drawBar(x + 0.5 * barWidth + offset, y + fillHeight - bar1Height - 1, barWidth, bar1Height, group.className + ' vis-bar', framework.svgElements, framework.svg, group.style); |
|
|
DOMutil.drawBar(x + 0.5 * barWidth + offset, y + fillHeight - bar1Height - 1, barWidth, bar1Height, group.className + ' vis-bar', framework.svgElements, framework.svg, group.style); |
|
|
DOMutil.drawBar(x + 1.5 * barWidth + offset + 2, y + fillHeight - bar2Height - 1, barWidth, bar2Height, group.className + ' vis-bar', framework.svgElements, framework.svg, group.style); |
|
|
DOMutil.drawBar(x + 1.5 * barWidth + offset + 2, y + fillHeight - bar2Height - 1, barWidth, bar2Height, group.className + ' vis-bar', framework.svgElements, framework.svg, group.style); |
|
|
//TODO: draw little points if drawPoints enabled.
|
|
|
|
|
|
|
|
|
|
|
|
if (group.options.drawPoints.enabled == true) { |
|
|
if (group.options.drawPoints.enabled == true) { |
|
|
var groupTemplate = { |
|
|
var groupTemplate = { |
|
|
style: group.options.drawPoints.style, |
|
|
style: group.options.drawPoints.style, |
|
|
styles: group.options.drawPoints.styles, |
|
|
styles: group.options.drawPoints.styles, |
|
|
size: barWidth/5, |
|
|
|
|
|
|
|
|
size: Math.max(barWidth/5,group.options.drawPoints.size), |
|
|
className: group.className |
|
|
className: group.className |
|
|
}; |
|
|
}; |
|
|
DOMutil.drawPoint(x + 0.5 * barWidth + offset, y + fillHeight - bar1Height - 1, groupTemplate, framework.svgElements, framework.svg); |
|
|
DOMutil.drawPoint(x + 0.5 * barWidth + offset, y + fillHeight - bar1Height - 1, groupTemplate, framework.svgElements, framework.svg); |
|
|