Fixes rectangles

This commit is contained in:
Roman Galochkin 2020-03-02 08:47:04 +03:00
parent 936710cea8
commit a2c5eaac89

View File

@ -403,9 +403,9 @@ export class CdfChartD3 {
.enter()
.append('rect')
.attr('width', 30)
.attr('height', this.calc.chartHeight)
.attr('height', d => this.calc.chartHeight - yScale(d.y) + 10)
.attr('x', d => common.xScale(d.x) - 15)
.attr('y', 0)
.attr('y', d => yScale(d.y) - 10)
.attr('opacity', 0)
.attr('pointer-events', 'all')
.on('mouseover', showTooltip)