Skip to content

The plugin behavior in Cal-Heatmap v4 appears to differ from the documented implementation. #545

@khansudarsan

Description

@khansudarsan

When tried to add tooltip function in the plugin it says
Type '{ enabled: true; text: (timestamp: any, value: any, dayjsDate: any) => string; }' is not assignable to type 'Partial<PluginOptions>'. Object literal may only specify known properties, and 'enabled' does not exist in type 'Partial<PluginOptions>'. and in the package
export interface PluginOptions { position?: 'top' | 'right' | 'bottom' | 'left'; dimensions?: Dimensions; key?: string; } which is not aligned with what is documented
interface TooltipOptions extends PluginOptions, PopperOptions { enabled: boolean; text: (timestamp: number, value: number, dayjsDate: dayjs.Dayjs) => string; }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions