@carbon/charts
    Preparing search index...

    Function convertValueToPercentage

    • Get the percentage of a datapoint compared to the entire dataset.

      Parameters

      • item: any
      • fullData: any
      • key: string = 'value'
      • entireValue: boolean = false

      Returns number

      The percentage in the form of a number (1 significant digit if necessary)