private shouldRenderAxis()

in src/visual.ts [1859:1883]


    private shouldRenderAxis(
        axisProperties: IAxisProperties,
        propertyName: string = "show"): boolean {

        if (axisProperties) {
            if (axisProperties.isCategoryAxis
                && (!this.categoryAxisProperties
                    || this.categoryAxisProperties[propertyName] == null
                    || this.categoryAxisProperties[propertyName])) {

                return axisProperties.values
                    && axisProperties.values.length > 0;
            }
            else if (!axisProperties.isCategoryAxis
                && (!this.valueAxisProperties
                    || this.valueAxisProperties[propertyName] == null
                    || this.valueAxisProperties[propertyName])) {

                return axisProperties.values
                    && axisProperties.values.length > 0;
            }
        }

        return false;
    }