stz-chart-maker Documentation - v2.3.7
    Preparing search index...

    Variable customLegendConst

    customLegend: {
        _Default: {
            className: { box: string; item: string; list: string; text: string };
            containerID: string;
            getDatasetType: (
                chart: Chart,
                item: Record<string, any>,
            ) => (keyof ChartTypeRegistry) | undefined;
            getItemText: (item: any) => any;
            styles: {
                box: (
                    item: any,
                    type: any,
                ) => {
                    backgroundColor: any;
                    borderColor: any;
                    borderRadius: string;
                    borderWidth: string;
                    height: string;
                    width: string;
                };
                text: { color: string; textDecoration: string };
                textHidden: { color: string; textDecoration: string };
            };
        };
        _fnc: (
            chart: Chart,
            id: string,
            options: { className: { list: string } },
        ) => HTMLDivElement | undefined;
        id: string;
        afterUpdate(chart: any, args: any, options: any): void;
    } = ...

    Type Declaration

    • _Default: {
          className: { box: string; item: string; list: string; text: string };
          containerID: string;
          getDatasetType: (
              chart: Chart,
              item: Record<string, any>,
          ) => (keyof ChartTypeRegistry) | undefined;
          getItemText: (item: any) => any;
          styles: {
              box: (
                  item: any,
                  type: any,
              ) => {
                  backgroundColor: any;
                  borderColor: any;
                  borderRadius: string;
                  borderWidth: string;
                  height: string;
                  width: string;
              };
              text: { color: string; textDecoration: string };
              textHidden: { color: string; textDecoration: string };
          };
      }
    • _fnc: (
          chart: Chart,
          id: string,
          options: { className: { list: string } },
      ) => HTMLDivElement | undefined
    • id: string
    • afterUpdate: function
      • Parameters

        • chart: any
        • args: any
        • options: any

        Returns void

    외부 HTML 컨테이너에 커스텀 범례를 렌더링하는 플러그인입니다. containerID 옵션으로 렌더링 대상 엘리먼트를 지정합니다.