Browse Source

hotfix

pull/7/head
rozetko 2 months ago
parent
commit
0302ed6c62
  1. 1
      src/index.ts

1
src/index.ts

@ -285,7 +285,6 @@ export class ChartwerkBarPod extends ChartwerkPod<BarSerie, BarOptions> {
const xAxisStartValue = _.first(this.series.visibleSeries[0].datapoints)[0]; const xAxisStartValue = _.first(this.series.visibleSeries[0].datapoints)[0];
const xAxisEndValue = _.last(this.series.visibleSeries[0].datapoints)[0]; const xAxisEndValue = _.last(this.series.visibleSeries[0].datapoints)[0];
const timeInterval = (xAxisEndValue - xAxisStartValue) / this.series.visibleSeries[0].datapoints.length; const timeInterval = (xAxisEndValue - xAxisStartValue) / this.series.visibleSeries[0].datapoints.length;
console.log(xAxisStartValue, xAxisEndValue, timeInterval);
let width = this.state.xScale(timeInterval) / 2; let width = this.state.xScale(timeInterval) / 2;
if(this.options.barOptions.barWidth !== undefined) { if(this.options.barOptions.barWidth !== undefined) {
// barWidth now has axis-x dimension // barWidth now has axis-x dimension

Loading…
Cancel
Save