ITimeSpanMeasureUnitsCalculator.CalculateMeasureUnit(IEnumerable<Series>, Double, Int32, Double, Double, Double, Double) Method
Calculates the time-span measurement unit that an axis should use for display.
Namespace: DevExpress.XtraCharts
Assembly: DevExpress.XtraCharts.v24.2.dll
Declaration
TimeSpanMeasureUnit CalculateMeasureUnit(
IEnumerable<Series> series,
double axisLength,
int pixelsPerUnit,
double visualMin,
double visualMax,
double wholeMin,
double wholeMax
)
Parameters
Name | Type | Description |
---|---|---|
series | IEnumerable<Series> | |
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 |
---|---|
TimeSpanMeasureUnit | 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