|
|
@ -45,14 +45,16 @@ class LinePod extends ChartwerkPod<LineTimeSerie, LineOptions> { |
|
|
|
const generator = this.getRenderGenerator(serie.renderArea, serie.yOrientation); |
|
|
|
const generator = this.getRenderGenerator(serie.renderArea, serie.yOrientation); |
|
|
|
this._renderMetric(serie, generator); |
|
|
|
this._renderMetric(serie, generator); |
|
|
|
} |
|
|
|
} |
|
|
|
if(this._markersConf !== undefined) { |
|
|
|
if(!_.isEmpty(this._markersConf)) { |
|
|
|
this._markersLayer = new Markers(this.d3Node, this._markersConf, this.state, this.margin); |
|
|
|
this._markersLayer = new Markers(this.d3Node, this._markersConf, this.state, this.margin); |
|
|
|
this._markersLayer.render(this.metricContainer, this.height); |
|
|
|
this._markersLayer.render(this.metricContainer, this.height); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(!_.isEmpty(this._segmentSeries)) { |
|
|
|
this._segmentsLayer = new Segments(this._segmentSeries, this.state); |
|
|
|
this._segmentsLayer = new Segments(this._segmentSeries, this.state); |
|
|
|
this._segmentsLayer.render(this.metricContainer, this.chartContainer); |
|
|
|
this._segmentsLayer.render(this.metricContainer, this.chartContainer); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
clearAllMetrics(): void { |
|
|
|
clearAllMetrics(): void { |
|
|
|
// TODO: temporary hack before it will be implemented in core.
|
|
|
|
// TODO: temporary hack before it will be implemented in core.
|
|
|
|