prepareDataForVegaSpec() {
        const x = this.getTrace(this.xaxisTraceName);
        const y = this.getTrace(this.yaxisTraceName);
        const values = this.values;
        values.length = 0;
        for (let i=0; i < x.length; i++) {
            if (!isNaN(x[i])) {
                let value = {};
                value[this.xaxisTraceName] = x[i];
                value[this.yaxisTraceName] = y[i];
                for (var key in this.traces) {
                    if (key==this.xaxisTraceName) continue;
                    if (key==this.yaxisTraceName) continue;
                    value[key] = this.getTrace(key)[i];
                }
                values.push(value);
            }
        }
    }
/**
     * Generate data array snippets for efficent insertion into Vega schema
     */
Generate data array snippets for efficent insertion into Vega schema
Generate data array snippets for efficent insertion into Vega schema
prepareDataForVegaSpec() {
        const x = this.getTrace(this.xaxisTraceName);
        const y = this.getTrace(this.yaxisTraceName);
        const values = this.values;
        values.length = 0;
        for (let i=0; i < x.length; i++) {
            if (!isNaN(x[i])) {
                let value = {};
                value[this.xaxisTraceName] = x[i];
                value[this.yaxisTraceName] = y[i];
                for (var key in this.traces) {
                    if (key==this.xaxisTraceName) continue;
                    if (key==this.yaxisTraceName) continue;
                    value[key] = this.getTrace(key)[i];
                }
                values.push(value);
            }
        }
    }
prepareDataForVegaSpec ( ) { const x = this . getTrace ( this . xaxisTraceName ) ; const y = this . getTrace ( this . yaxisTraceName ) ; const values = this . values ; values . length = 0 ; for ( let i = 0 ; i < x . length ; i ++ ) { if ( ! isNaN ( x [ i ] ) ) { let value = { } ; value [ this . xaxisTraceName ] = x [ i ] ; value [ this . yaxisTraceName ] = y [ i ] ; for ( var key in this . traces ) { if ( key == this . xaxisTraceName ) continue ; if ( key == this . yaxisTraceName ) continue ; value [ key ] = this . getTrace ( key ) [ i ] ; } values . push ( value ) ; } } }
Generate data array snippets for efficent insertion into Vega schema
Generate data array snippets for efficent insertion into Vega schema