How to use the d3fc.axisOrdinalLeft 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 / axis / crossAxis.js View on Github external
const pickAxis = multiLevel => {
        if (multiLevel) {
            return orient === "horizontal" ? multiAxisBottom : multiAxisLeft;
        }
        return orient === "horizontal" ? fc.axisOrdinalBottom : fc.axisOrdinalLeft;
    };
github finos / perspective / packages / perspective-viewer-d3fc / src / js / axis / ordinalAxis.js View on Github external
const getAxisSet = multiLevel => {
        if (multiLevel) {
            return {
                bottom: multiAxisBottom,
                left: multiAxisLeft,
                top: multiAxisTop,
                right: multiAxisRight
            };
        } else {
            return {
                bottom: fc.axisOrdinalBottom,
                left: fc.axisOrdinalLeft,
                top: fc.axisOrdinalTop,
                right: fc.axisOrdinalRight
            };
        }
    };