|
|
@ -65,6 +65,7 @@ export class ChartwerkBarPod extends ChartwerkPod<BarSerie, BarOptions> { |
|
|
|
.data(d.values) |
|
|
|
.data(d.values) |
|
|
|
.enter().append('rect') |
|
|
|
.enter().append('rect') |
|
|
|
.style('fill', (val, i) => d.colors[i]) |
|
|
|
.style('fill', (val, i) => d.colors[i]) |
|
|
|
|
|
|
|
.style('pointer-events', this.options.contextMenu ? 'all' : 'none') |
|
|
|
.attr('opacity', () => this.getBarOpacity(d)) |
|
|
|
.attr('opacity', () => this.getBarOpacity(d)) |
|
|
|
.attr('x', (val: number, idx: number) => { |
|
|
|
.attr('x', (val: number, idx: number) => { |
|
|
|
return this.getBarPositionX(d.key, idx); |
|
|
|
return this.getBarPositionX(d.key, idx); |
|
|
|