BarChartLabelFormatter: ((info: {
    bar: BarChartBar | undefined;
    category: string;
    chart: BarChart;
    subCategory: string | undefined;
    value: number;
}) => string)

Type declaration

    • (info: {
          bar: BarChartBar | undefined;
          category: string;
          chart: BarChart;
          subCategory: string | undefined;
          value: number;
      }): string
    • Type definition for a function that formats text displayed in bar chart labels.

      See examples in setCategoryLabels and setValueLabels.

      Parameters

      • info: {
            bar: BarChartBar | undefined;
            category: string;
            chart: BarChart;
            subCategory: string | undefined;
            value: number;
        }
        • bar: BarChartBar | undefined
        • category: string
        • chart: BarChart
        • subCategory: string | undefined
        • value: number

      Returns string