donut property

dynamic get donut

Implementation

external dynamic
    /*{
      label?: {
          /**
           * Show or hide label on each donut piece.
           */
          show?: boolean;
          /**
           * Set formatter for the label on each donut piece.
           */
          format?(value: number, ratio: number, id: string): string;
          /**
           * Set threshold to show/hide labels.
           */
          threshold?: number
      };
      /**
       * Enable or disable expanding pie pieces.
       */
      expand?: boolean;
      /**
       * Set width of donut chart.
       */
      width?: number;
      /**
       * Set title of donut chart.
       */
      title?: string;
  }*/
    get donut;
set donut (dynamic v)

Implementation

external set donut(
    dynamic
        /*{
      label?: {
          /**
           * Show or hide label on each donut piece.
           */
          show?: boolean;
          /**
           * Set formatter for the label on each donut piece.
           */
          format?(value: number, ratio: number, id: string): string;
          /**
           * Set threshold to show/hide labels.
           */
          threshold?: number
      };
      /**
       * Enable or disable expanding pie pieces.
       */
      expand?: boolean;
      /**
       * Set width of donut chart.
       */
      width?: number;
      /**
       * Set title of donut chart.
       */
      title?: string;
  }*/
        v);