Nativescript plugin for Charts
    Preparing search index...

    Function convertPixelsToDp

    • This method converts device specific pixels to density independent pixels. NEEDS UTILS TO BE INITIALIZED BEFORE USAGE.

      Parameters

      • px: any

        A value in px (pixels) unit. Which we need to convert into db

      Returns any

      A let value to represent dp equivalent to px value