|
|
@ -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
|
|
|
|