How to use @hpcc-js/composite - 2 common examples

To help you get started, we’ve selected a few @hpcc-js/composite 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 / tests / test-composite / src / composite.spec.ts View on Github external
describe(`${item.prototype.constructor.name}`, () => {
                    if (item.prototype instanceof Class) {
                        classDef("composite", item);
                    }
                    if (item.prototype instanceof HTMLWidget || item.prototype instanceof SVGWidget) {
                        switch (item.prototype.constructor) {
                            case MultiChart:
                                render(new MultiChart()
                                    .columns(data.Pivot.subjects.columns)
                                    .data(data.Pivot.subjects.data)
                                    .chartType("COLUMN")
                                );
                            case Dermatology:
                            case MegaChart:
                            case MultiChartPanel:
                                break;
                            default:
                                it("Missing test", () => {
                                    expect(false).to.be.true;
                                });
                        }
                    }
                });
            }
github hpcc-systems / Visualization / packages / marshaller / src / ddl1 / HipieDDL.ts View on Github external
this.loadWidgets(["../composite/MegaChart", widgetPath], function (megaChart, widgets) {
            const chart = new widgets[1]();
            megaChart
                .chartType_default(MultiChart.prototype._allChartTypesByClass[chart.classID()].id)
                .chart(chart)
                ;
            if (callback) {
                callback(megaChart, chart, widgets);
            }
        });
    }

@hpcc-js/composite

hpcc-js - Viz Composite

Apache-2.0
Latest version published 13 days ago

Package Health Score

73 / 100
Full package analysis

Similar packages