INumericMeasureUnitsCalculator.CalculateMeasureUnit(IEnumerable<Series>, Double, Int32, Double, Double, Double, Double) Method
In This Article
Calculates the numeric measurement unit that an axis should use for display.
Namespace: DevExpress.XtraCharts
Assembly: DevExpress.XtraCharts.v24.2.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> | |
axis |
Double | The length of the axis’s visual range in pixels. |
pixels |
Int32 | The minimum count of pixels that series require to draw their points correctly. |
visual |
Double | The visual range’s minimum value. |
visual |
Double | The visual range’s maximum value. |
whole |
Double | The whole range’s minimum value. |
whole |
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