|
|
@ -619,13 +619,13 @@ export class GraphRenderer { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private _addXTableAxis() { |
|
|
|
private _addXTableAxis() { |
|
|
|
var ticks = _.map(this.data, function(series: any, seriesIndex) { |
|
|
|
var ticks = _.map(this.data, function(series: any, seriesIndex: any) { |
|
|
|
return _.map(series.datapoints, function(point, pointIndex) { |
|
|
|
return _.map(series.datapoints, function(point, pointIndex) { |
|
|
|
var tickIndex = seriesIndex * series.datapoints.length + pointIndex; |
|
|
|
var tickIndex = seriesIndex * series.datapoints.length + pointIndex; |
|
|
|
return [tickIndex + 1, point[1]]; |
|
|
|
return [tickIndex + 1, point[1]]; |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
ticks = _.flatten(ticks, true); |
|
|
|
ticks = _.flatten(ticks);
|
|
|
|
|
|
|
|
|
|
|
|
this.flotOptions.xaxis = { |
|
|
|
this.flotOptions.xaxis = { |
|
|
|
timezone: this.dashboard.getTimezone(), |
|
|
|
timezone: this.dashboard.getTimezone(), |
|
|
|