Fixes rectangles
This commit is contained in:
parent
936710cea8
commit
a2c5eaac89
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user