Skip to main content

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

Calculates the date-time measurement unit that an axis should use for display.

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v24.2.dll

NuGet Package: DevExpress.Charts

Declaration

DateTimeMeasureUnit 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 the axis.

axisLength Double

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

pixelsPerUnit Int32

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

visualMin Double

The visual range’s minimum value in milliseconds.

visualMax Double

The visual range’s maximum value in milliseconds.

wholeMin Double

The whole range’s minimum value in milliseconds.

wholeMax Double

The whole range’s maximum value in milliseconds.

Returns

Type Description
DateTimeMeasureUnit

The calculated 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