Skip to main content

INumericMeasureUnitsCalculator.CalculateMeasureUnit(IEnumerable<Series>, Double, Int32, Double, Double, Double, Double) Method

Calculates the numeric measurement unit that an axis should use for display.

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v24.1.dll

NuGet Package: DevExpress.Charts

Declaration

double CalculateMeasureUnit(
    IEnumerable<Series> series,
    double axisLength,
    int pixelsPerUnit,
    double visualMin,
    double visualMax,
    double wholeMin,
    double wholeMax
)

Parameters

Name Type Description
series IEnumerable<Series>

All Series associated with an axis.

axisLength Double

The length of the axis’s visual range in pixels.

pixelsPerUnit Int32

The minimum count of pixels that series require to draw their points correctly.

visualMin Double

The visual range’s minimum value.

visualMax Double

The visual range’s maximum value.

wholeMin Double

The whole range’s minimum value.

wholeMax Double

The whole range’s maximum value.

Returns

Type Description
Double

The calculated numeric measurement unit.

Remarks

For example, bars can overlap each other if the calculated measurement unit covers fewer pixels on the axis than the pixelPerUnit parameter specifies.

See Also