Browse Source

hotfix

pull/7/head
rozetko 3 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 xAxisEndValue = _.last(this.series.visibleSeries[0].datapoints)[0];
const timeInterval = (xAxisEndValue - xAxisStartValue) / this.series.visibleSeries[0].datapoints.length;
console.log(xAxisStartValue, xAxisEndValue, timeInterval);
let width = this.state.xScale(timeInterval) / 2;
if(this.options.barOptions.barWidth !== undefined) {
// barWidth now has axis-x dimension

Loading…
Cancel
Save