Nativescript plugin for Charts
    Preparing search index...

    Function convertDpToPixel

    • This method converts dp unit to equivalent pixels, depending on device density. NEEDS UTILS TO BE INITIALIZED BEFORE USAGE.

      Parameters

      • dp: any

        A value in dp (density independent pixels) unit. Which we need to convert into pixels

      Returns number

      A let value to represent px equivalent to dp depending on device density