Utilities class that has some helper methods. Needs to be initialized by calling Utils.init(...) before usage. Inside the Chart.init() method, this is done, if the Utils are used before that, Utils.init(...) needs to be called manually.

Variables

DEG2RAD
density
NUMBER_EPSILON
RAD2DEG

Functions

arrayToNativeArray
calcPosNegSum
calcSum
calcSumToIndex
calcTextHeight
calcTextSize
calcTextWidth
clipPathSupported
convertDpToPixel
convertPixelsToDp
createArrayBuffer
createArrayBufferOrNativeArray
createNativeArray
drawMultilineText
drawMultilineTextConstrained
drawXAxisValue
formatNumber
generateDefaultValueFormatter
getArrayItem
getDecimals
getDefaultValueFormatter
getLineHeight
getLineHeightFromMetrics
getLineSpacing
getLineSpacingFromMetrics
getNormalizedAngle
getPosition
getSizeOfRotatedRectangleByDegrees
getSizeOfRotatedRectangleByRadians
getTempArray
getTemplatePaint
getTempMatrix
getTempPaint
getTempPath
getTempRect
getTempRectF
init
nativeArrayToArray
nextUp
pointsFromBuffer
roundToNextSignificant
supportsDirectArrayBuffers
toRadians