|
|
|
@ -178,6 +178,10 @@ abstract class ChartwerkPod<T extends TimeSerie, O extends Options> {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public render(): void { |
|
|
|
|
if(has(this.options.eventsCallbacks, 'renderStart')) { |
|
|
|
|
this.options.eventsCallbacks.renderStart(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
this.renderClipPath(); |
|
|
|
|
this.addEvents(); |
|
|
|
|
|
|
|
|
@ -256,7 +260,7 @@ abstract class ChartwerkPod<T extends TimeSerie, O extends Options> {
|
|
|
|
|
xScale: this.state.xScale, |
|
|
|
|
yScale: this.state.yScale, |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.grid = new Grid(this.d3, this.chartContainer, svgElParams, this.options.grid); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -973,7 +977,7 @@ abstract class ChartwerkPod<T extends TimeSerie, O extends Options> {
|
|
|
|
|
console.warn(`Value formatter for axis is not defined. Path options.axis.{?}.valueFormatter`); |
|
|
|
|
return (d) => d; |
|
|
|
|
} |
|
|
|
|
return (d, i) => {
|
|
|
|
|
return (d, i) => { |
|
|
|
|
if(axisOptions.colorFormatter !== undefined) { |
|
|
|
|
this.yAxisTicksColors.push(axisOptions.colorFormatter(d, i)) |
|
|
|
|
} |
|
|
|
|