From f597a2ac47390484c82185e43b3b2ec0aa1bea40 Mon Sep 17 00:00:00 2001 From: rozetko Date: Thu, 28 Jul 2022 14:28:38 +0300 Subject: [PATCH] fix indentation --- src/index.ts | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/src/index.ts b/src/index.ts index d83cfee..b7b6e31 100755 --- a/src/index.ts +++ b/src/index.ts @@ -62,23 +62,23 @@ export class ChartwerkBarPod extends ChartwerkPod { .each((d: RowValues, i: number, nodes: any) => { const container = d3.select(nodes[i]); container.selectAll('rect') - .data(d.values) - .enter().append('rect') - .style('fill', (val, i) => d.colors[i]) - .attr('opacity', () => this.getBarOpacity(d)) - .attr('x', (val: number, idx: number) => { - return this.getBarPositionX(d.key, idx); - }) - .attr('y', (val: number, idx: number) => { - return this.getBarPositionY(val, idx, d.values); - }) - .attr('width', this.barWidth) - .attr('height', (val: number) => this.getBarHeight(val)) - .on('contextmenu', this.contextMenu.bind(this)) - .on('mouseover', this.redirectEventToOverlay.bind(this)) - .on('mousemove', this.redirectEventToOverlay.bind(this)) - .on('mouseout', this.redirectEventToOverlay.bind(this)) - .on('mousedown', () => { d3.event.stopPropagation(); }); + .data(d.values) + .enter().append('rect') + .style('fill', (val, i) => d.colors[i]) + .attr('opacity', () => this.getBarOpacity(d)) + .attr('x', (val: number, idx: number) => { + return this.getBarPositionX(d.key, idx); + }) + .attr('y', (val: number, idx: number) => { + return this.getBarPositionY(val, idx, d.values); + }) + .attr('width', this.barWidth) + .attr('height', (val: number) => this.getBarHeight(val)) + .on('contextmenu', this.contextMenu.bind(this)) + .on('mouseover', this.redirectEventToOverlay.bind(this)) + .on('mousemove', this.redirectEventToOverlay.bind(this)) + .on('mouseout', this.redirectEventToOverlay.bind(this)) + .on('mousedown', () => { d3.event.stopPropagation(); }); // render bar annotations, its all hardcoded if(_.isEmpty(this.options.barOptions.annotations)) {