How to use the @hpcc-js/marshaller.VizChartPanel function in @hpcc-js/marshaller

To help you get started, we’ve selected a few @hpcc-js/marshaller 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 / demos / dashy / src / dashPOC.ts View on Github external
;
    export const e_8 = new marshaller.Form()
        .formFields([
            new marshaller.FormField().fieldID("filter_state")
        ])
        ;
}

namespace viz {
    export const table1 = new marshaller.VizChartPanel()
        .id("table1")
        .title("Table 1")
        .widget(new Table())
        ;

    export const cp_8 = new marshaller.VizChartPanel()
        .id("cp_8")
        .title("Element 8")
        .widget(new FieldForm()
            .validate(false)
            .allowEmptyRequest(true))
        ;
}

//  Dashboard Elements  (Controller) ---
const table1 = new marshaller.Element(ec)
    .id("table1")
    .pipeline([
        data.Ins002_dsOutput1_Ins002_dsOutput1_View_table1,
        new marshaller.Filters(ec).conditions([{ viewID: "e_8", mappings: [{ remoteFieldID: "filter_state", localFieldID: "state", condition: "==", nullable: true }] }])
    ])
    .mappings(new marshaller.Mappings().transformations([]))