diff --git a/lib/timeline/component/graph2d_types/bar.js b/lib/timeline/component/graph2d_types/bar.js index 4b635749..7b2e65f1 100644 --- a/lib/timeline/component/graph2d_types/bar.js +++ b/lib/timeline/component/graph2d_types/bar.js @@ -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 + 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) { var groupTemplate = { style: group.options.drawPoints.style, styles: group.options.drawPoints.styles, - size: barWidth/5, + size: Math.max(barWidth/5,group.options.drawPoints.size), className: group.className }; DOMutil.drawPoint(x + 0.5 * barWidth + offset, y + fillHeight - bar1Height - 1, groupTemplate, framework.svgElements, framework.svg);