How to use the d3fc.prefix function in d3fc

To help you get started, we’ve selected a few d3fc 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 finos / perspective / packages / perspective-viewer-d3fc / src / js / d3fc / chart / svg / cartesian.js View on Github external
};
    cartesian.yAxis = (...args) => {
        if (!args.length) {
            return yAxis;
        }
        yAxis = args[0];
        return cartesian;
    };

    const scaleExclusions = exclude(
        /range\w*/, // the scale range is set via the component layout
        /tickFormat/ // use axis.tickFormat instead (only present on linear scales)
    );
    rebindAll(cartesian, xScale, scaleExclusions, prefix("x"));
    rebindAll(cartesian, yScale, scaleExclusions, prefix("y"));
    rebindAll(cartesian, xAxisStore, prefix("x"));
    rebindAll(cartesian, yAxisStore, prefix("y"));
    return cartesian;
};
github finos / perspective / packages / perspective-viewer-d3fc / src / js / d3fc / chart / svg / cartesian.js View on Github external
return cartesian;
    };
    cartesian.yAxis = (...args) => {
        if (!args.length) {
            return yAxis;
        }
        yAxis = args[0];
        return cartesian;
    };

    const scaleExclusions = exclude(
        /range\w*/, // the scale range is set via the component layout
        /tickFormat/ // use axis.tickFormat instead (only present on linear scales)
    );
    rebindAll(cartesian, xScale, scaleExclusions, prefix("x"));
    rebindAll(cartesian, yScale, scaleExclusions, prefix("y"));
    rebindAll(cartesian, xAxisStore, prefix("x"));
    rebindAll(cartesian, yAxisStore, prefix("y"));
    return cartesian;
};
github finos / perspective / packages / perspective-viewer-d3fc / src / js / d3fc / chart / svg / cartesian.js View on Github external
cartesian.yAxis = (...args) => {
        if (!args.length) {
            return yAxis;
        }
        yAxis = args[0];
        return cartesian;
    };

    const scaleExclusions = exclude(
        /range\w*/, // the scale range is set via the component layout
        /tickFormat/ // use axis.tickFormat instead (only present on linear scales)
    );
    rebindAll(cartesian, xScale, scaleExclusions, prefix("x"));
    rebindAll(cartesian, yScale, scaleExclusions, prefix("y"));
    rebindAll(cartesian, xAxisStore, prefix("x"));
    rebindAll(cartesian, yAxisStore, prefix("y"));
    return cartesian;
};
github finos / perspective / packages / perspective-viewer-d3fc / src / js / d3fc / chart / svg / cartesian.js View on Github external
xAxis = args[0];
        return cartesian;
    };
    cartesian.yAxis = (...args) => {
        if (!args.length) {
            return yAxis;
        }
        yAxis = args[0];
        return cartesian;
    };

    const scaleExclusions = exclude(
        /range\w*/, // the scale range is set via the component layout
        /tickFormat/ // use axis.tickFormat instead (only present on linear scales)
    );
    rebindAll(cartesian, xScale, scaleExclusions, prefix("x"));
    rebindAll(cartesian, yScale, scaleExclusions, prefix("y"));
    rebindAll(cartesian, xAxisStore, prefix("x"));
    rebindAll(cartesian, yAxisStore, prefix("y"));
    return cartesian;
};
github finos / perspective / packages / perspective-viewer-d3fc / src / js / d3fc / annotation / canvas / gridline.js View on Github external
if (!args.length) {
            return yDecorate;
        }
        yDecorate = args[0];
        return instance;
    };

    instance.xDecorate = (...args) => {
        if (!args.length) {
            return xDecorate;
        }
        xDecorate = args[0];
        return instance;
    };

    rebindAll(instance, xTicks, prefix("x"));
    rebindAll(instance, yTicks, prefix("y"));
    rebind(instance, lineData, "context");

    return instance;
};
github finos / perspective / packages / perspective-viewer-d3fc / src / js / d3fc / annotation / canvas / gridline.js View on Github external
return yDecorate;
        }
        yDecorate = args[0];
        return instance;
    };

    instance.xDecorate = (...args) => {
        if (!args.length) {
            return xDecorate;
        }
        xDecorate = args[0];
        return instance;
    };

    rebindAll(instance, xTicks, prefix("x"));
    rebindAll(instance, yTicks, prefix("y"));
    rebind(instance, lineData, "context");

    return instance;
};