How to use the @hpcc-js/api.I1DChart.prototype 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 / amchart / src / Gauge.ts View on Github external
bottomText: { (): string; (_: string): Gauge };
    bottomText_exists: () => boolean;
    bottomTextYOffset: { (): number; (_: number): Gauge };
    bottomTextYOffset_exists: () => boolean;
    animatationDuration: { (): number; (_: number): Gauge };
    animatationDuration_exists: () => boolean;
    useClonedPalette: { (): boolean; (_: boolean): Gauge };
    useClonedPalette_exists: () => boolean;

    //  I1DChart
    _palette;
    click: (row, column, selected) => void;
    dblclick: (row, column, selected) => void;
}
Gauge.prototype._class += " amchart_Gauge";
Gauge.prototype.implements(I1DChart.prototype);

Gauge.prototype.publish("paletteID", "default", "set", "Palette ID", Gauge.prototype._palette.switch(), { tags: ["Basic", "Shared"] });
Gauge.prototype.publish("low", 0, "number", "Gauge lower bound", null, { tags: ["Intermediate", "Shared"] });
Gauge.prototype.publish("high", 100, "number", "Gauge higher bound", null, { tags: ["Intermediate", "Shared"] });

Gauge.prototype.publish("fontSize", 11, "number", "Font Size", null, { tags: ["Basic", "Shared"] });
Gauge.prototype.publish("fontFamily", "Verdana", "string", "Font Name", null, { tags: ["Basic", "Shared", "Shared"] });
Gauge.prototype.publish("fontColor", "#000000", "html-color", "Font Color", null, { tags: ["Basic", "Shared"] });

Gauge.prototype.publish("axisLineWidth", 1, "number", "Thickness of axis", null, { tags: ["Intermediate"] });

Gauge.prototype.publish("colorType", "a", "set", "", ["a", "b", "c"], { tags: ["Basic"] });

Gauge.prototype.publish("marginLeft", null, "number", "Margin (Left)", null, { tags: ["Intermediate"] });
Gauge.prototype.publish("marginRight", null, "number", "Margin (Right)", null, { tags: ["Intermediate"] });
Gauge.prototype.publish("marginTop", null, "number", "Margin (Top)", null, { tags: ["Intermediate"] });
github hpcc-systems / Visualization / packages / chart / src / Contour.ts View on Github external
.merge(lines)
            .attr("d", geoPath())
            .attr("fill", d => this.showContourFill() ? this._palette(d.value, minValue, maxValue) : "none")
            .attr("stroke", this.contourStrokeColor())
            .attr("stroke-linejoin", "round")
            .attr("stroke-width", this.contourStrokeWidth())
            ;
        lines.exit().remove();
    }

    exit(_domNode, _element) {
        super.exit(_domNode, _element);
    }
}
Contour.prototype._class += " chart_Contour";
Contour.prototype.implements(I1DChart.prototype);

export interface Contour {
    paletteID(): string;
    paletteID(_: string): this;
    useClonedPalette(): boolean;
    useClonedPalette(_: boolean): this;
    showContourFill(): boolean;
    showContourFill(_: boolean): this;
    showContour(): boolean;
    showContour(_: boolean): this;
    contourBandwidth(): number;
    contourBandwidth(_: number): this;
    contourStrokeColor(): string;
    contourStrokeColor(_: string): this;
    contourStrokeWidth(): number;
    contourStrokeWidth(_: number): this;