Customize legend on ChartJs v2.7.2 using Angular 6
Customize legend on ChartJs v2.7.2 using Angular 6 I would like to customize my legend to replace the current behavior with check boxes instead. However, in the ChartOptions , there is no more legendCallback function to call in order to override the default behavior, and so the Html. Seems legit since it was changed after version 2.1 of chartjs. Here is my current ChartOptions : interface ChartOptions { responsive?: boolean; responsiveAnimationDuration?: number; aspectRatio?: number; maintainAspectRatio?: boolean; events?: string; onHover?(this: Chart, event: MouseEvent, activeElements: Array<{}>): any; onClick?(event?: MouseEvent, activeElements?: Array<{}>): any; onResize?(this: Chart, newSize: ChartSize): void; title?: ChartTitleOptions; legend?: ChartLegendOptions; tooltips?: ChartTooltipOptions; hover?: ChartHoverOptions;...