How to use the @hpcc-js/api.ITooltip.call function in @hpcc-js/api

To help you get started, we’ve selected a few @hpcc-js/api examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github hpcc-systems / Visualization / packages / chart / src / Radar.ts View on Github external
constructor() {
        super();
        INDChart.call(this);
        ITooltip.call(this);
        Utility.SimpleSelectionMixin.call(this);
    }
github hpcc-systems / Visualization / packages / chart / src / WordCloud.ts View on Github external
constructor() {
        super();
        I2DChart.call(this);
        ITooltip.call(this);
        Utility.SimpleSelectionMixin.call(this);

        this._prevOffsetX = this.offsetX();
        this._prevOffsetY = this.offsetY();
        this._prevZoom = this.zoom();
    }
github hpcc-systems / Visualization / packages / chart / src / WordCloud.ts View on Github external
constructor() {
        super();
        I2DChart.call(this);
        ITooltip.call(this);
        Utility.SimpleSelectionMixin.call(this);

        this._prevOffsetX = this.offsetX();
        this._prevOffsetY = this.offsetY();
        this._prevZoom = this.zoom();
    }
github hpcc-systems / Visualization / packages / chart / src / Scatter.ts View on Github external
constructor() {
        super();
        INDChart.call(this);
        ITooltip.call(this);
        this
            .xAxisGuideLines_default(true)
            .yAxisGuideLines_default(true)
            ;
    }
github hpcc-systems / Visualization / packages / timeline / src / MiniGantt.ts View on Github external
constructor() {
        super();
        ITooltip.call(this);
        Utility.SimpleSelectionMixin.call(this);

        this._drawStartPos = "origin";
        this.tooltipHTML((d: any) =&gt; `<center>${d[this._title_idx]}</center><br>${this.tooltipFormatter(this.brAxis.parse(d[this._startDate_idx]))} -&gt; ${this.tooltipFormatter(this.brAxis.parse(d[this._endDate_idx]))}`);

        this.tlAxis = new Axis()
            .type("time")
            ;
        this.brAxis = new Axis()
            .type("time")
            ;
        this.verticalBands = d3ScaleBand()
            .paddingOuter(0.2)
            .paddingInner(0.2)
            ;
    }
github hpcc-systems / Visualization / packages / chart / src / Column.ts View on Github external
constructor() {
        super();
        INDChart.call(this);
        ITooltip.call(this);

        this._selection.skipBringToTop(true);

        this._linearGap = 25.0;
    }
github hpcc-systems / Visualization / packages / chart / src / HexBin.ts View on Github external
constructor() {
        super();
        I2DAggrChart.call(this);
        this.tooltipValueFormat_default(",.0f");
        ITooltip.call(this);
        this.tooltipHTML(d =&gt; {
            const seriesExtent = d3Extent&lt;{ label: any, value: any }&gt;(d, d =&gt; d.label);
            const labelExtent = d3Extent&lt;{ label: any, value: any }&gt;(d, d =&gt; d.value);
            return this.tooltipFormat({
                series: seriesExtent[0] === seriesExtent[1] ? seriesExtent[0] : `${seriesExtent[0]} -&gt; ${seriesExtent[1]}`,
                label: labelExtent[0] === labelExtent[1] ? labelExtent[0] : `${labelExtent[0]} -&gt; ${labelExtent[1]}`,
                value: d.length
            });
        });
        this._hexbin = d3HexBin()
            .x(d =&gt; d.x)
            .y(d =&gt; d.y)
            ;
        this
            .xAxisGuideLines_default(false)
            .yAxisGuideLines_default(false)
github hpcc-systems / Visualization / packages / chart / src / RadialBar.ts View on Github external
constructor() {
        super();
        INDChart.call(this);
        ITooltip.call(this);
        Utility.SimpleSelectionMixin.call(this);
    }
github hpcc-systems / Visualization / packages / chart / src / Pie.ts View on Github external
constructor() {
        super();
        I2DChart.call(this);
        ITooltip.call(this);
        Utility.SimpleSelectionMixin.call(this);

        this.d3Pie = d3Pie()
            .padAngle(0.0025)
            .sort(function (b, a) {
                return a[1] &lt; b[1] ? -1 : a[1] &gt; b[1] ? 1 : 0;
            })
            .value(function (d) {
                return d[1];
            })
            ;

        this.d3Arc = d3Arc();
        this.d3LabelArc = d3Arc();
        this
            .tooltipTick_default(false)