Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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>