Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor() {
super();
I2DAggrChart.call(this);
this.tooltipValueFormat_default(",.0f");
ITooltip.call(this);
this.tooltipHTML(d => {
const seriesExtent = d3Extent<{ label: any, value: any }>(d, d => d.label);
const labelExtent = d3Extent<{ label: any, value: any }>(d, d => d.value);
return this.tooltipFormat({
series: seriesExtent[0] === seriesExtent[1] ? seriesExtent[0] : `${seriesExtent[0]} -> ${seriesExtent[1]}`,
label: labelExtent[0] === labelExtent[1] ? labelExtent[0] : `${labelExtent[0]} -> ${labelExtent[1]}`,
value: d.length
});
});
this._hexbin = d3HexBin()
.x(d => d.x)
.y(d => d.y)
;
this