format property

dynamic format

Implementation

external dynamic
    /*{
      /**
       * Set format for the title of tooltip. Specified function receives x of the data point to show.
       */
      title?(x: any): string;
      /**
       * Set format for the name of each data in tooltip. Specified function receives name, ratio, id and index of the data point to show. ratio will be undefined if the chart is not
       * donut/pie/gauge.
       */
      name?(name: string, ratio: number, id: string, index: number): string;
      /**
       * Set format for the value of each data in tooltip.
       * Specified function receives name, ratio, id and index of the data point to show. ratio will be undefined if the chart is not donut/pie/gauge.
       * If undefined returned, the row of that value will be skipped.
       */
      value?(value: any, ratio: number, id: string, index: number): string;
  }*/
    get format;
void format=(dynamic v)

Implementation

external set format(
    dynamic
        /*{
      /**
       * Set format for the title of tooltip. Specified function receives x of the data point to show.
       */
      title?(x: any): string;
      /**
       * Set format for the name of each data in tooltip. Specified function receives name, ratio, id and index of the data point to show. ratio will be undefined if the chart is not
       * donut/pie/gauge.
       */
      name?(name: string, ratio: number, id: string, index: number): string;
      /**
       * Set format for the value of each data in tooltip.
       * Specified function receives name, ratio, id and index of the data point to show. ratio will be undefined if the chart is not donut/pie/gauge.
       * If undefined returned, the row of that value will be skipped.
       */
      value?(value: any, ratio: number, id: string, index: number): string;
  }*/
        v);