How to: Use a Custom Measure Unit in Automatic Numeric Scale Mode

To use a custom numeric scale in Automatic scale mode, assign an object of a class implementing the INumericMeasureUnitsCalculator interface to the AutomaticDateTimeScaleOptions.AutomaticMeasureUnitsCalculator property of an AutomaticNumericScaleOptions object assigned to AxisX2D.NumericScaleOptions.

<dxc:XYDiagram2D.AxisX>
    <dxc:AxisX2D>
        <dxc:AxisX2D.NumericScaleOptions>
            <dxc:AutomaticNumericScaleOptions>
                <dxc:AutomaticNumericScaleOptions.AutomaticMeasureUnitsCalculator>
                    <local:NumericMeasureUnitsCalculator/>
                </dxc:AutomaticNumericScaleOptions.AutomaticMeasureUnitsCalculator>
            </dxc:AutomaticNumericScaleOptions>
        </dxc:AxisX2D.NumericScaleOptions>
    </dxc:AxisX2D>
</dxc:XYDiagram2D.AxisX>