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.v20.1.dll


DateTimeMeasureUnit CalculateMeasureUnit(
    IEnumerable<Series> series,
    double axisLength,
    int pixelsPerUnit,
    double visualMin,
    double visualMax,
    double wholeMin,
    double wholeMax
Function CalculateMeasureUnit(
    series As IEnumerable(Of Series),
    axisLength As Double,
    pixelsPerUnit As Integer,
    visualMin As Double,
    visualMax As Double,
    wholeMin As Double,
    wholeMax As Double
) As DateTimeMeasureUnit


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.


Type Description

The calculated measurement unit.


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