I'm trying to add the click event to a YAxis label of a Gantt.
By only extending the interface for the YAxis -> Labels, I get the application compiled but the click is not run.
By searching here and there I found an example like this one:
https://stackblitz.com/edit/highcharts- ... mponent.ts
But if I try to do the same, I get an error from typescript: Which is:
Code: Select all
Argument of type 'typeof import("C:/Users/sitoliquido/Documents/PrismNx.UI/node_modules/highcharts/highcharts")' is not assignable to parameter of type 'typeof import("C:/Users/sitoliquido/Documents/PrismNx.UI/node_modules/highcharts-custom-events/node_modules/highcharts/highcharts")'.
Types of property 'chart' are incompatible.
Type '{ (options: Highcharts.Options, callback?: Highcharts.ChartCallbackFunction): Highcharts.Chart; (renderTo: string | HTMLElement, options: Highcharts.Options, callback?: Highcharts.ChartCallbackFunction): Highcharts.Chart; }' is not assignable to type '{ (options: import("C:/Users/sitoliquido/Documents/PrismNx.UI/node_modules/highcharts-custom-events/node_modules/highcharts/highcharts").Options, callback?: import("C:/Users/sitoliquido/Documents/PrismNx.UI/node_modules/highcharts-custom-events/node_modules/highcharts/highcharts").ChartCallbackFunction): import("C:/...'.
Types of parameters 'options' and 'options' are incompatible.
Type 'import("C:/Users/sitoliquido/Documents/PrismNx.UI/node_modules/highcharts-custom-events/node_modules/highcharts/highcharts").Options' is not assignable to type 'Highcharts.Options'.
The types of 'accessibility.announceNewData.announcementFormatter' are incompatible between these types.
Type 'import("C:/Users/sitoliquido/Documents/PrismNx.UI/node_modules/highcharts-custom-events/node_modules/highcharts/highcharts").AccessibilityAnnouncementFormatter' is not assignable to type 'Highcharts.AccessibilityAnnouncementFormatter'.
Types of parameters 'updatedSeries' and 'updatedSeries' are incompatible.
Type 'Highcharts.Series[]' is not assignable to type 'import("C:/Users/sitoliquido/Documents/PrismNx.UI/node_modules/highcharts-custom-events/node_modules/highcharts/highcharts").Series[]'.
Type 'Highcharts.Series' is not assignable to type 'import("C:/Users/sitoliquido/Documents/PrismNx.UI/node_modules/highcharts-custom-events/node_modules/highcharts/highcharts").Series'.
The types of 'chart.axes' are incompatible between these types.
Type 'Highcharts.Axis[]' is not assignable to type 'import("C:/Users/sitoliquido/Documents/PrismNx.UI/node_modules/highcharts-custom-events/node_modules/highcharts/highcharts").Axis[]'.
Type 'Highcharts.Axis' is not assignable to type 'import("C:/Users/sitoliquido/Documents/PrismNx.UI/node_modules/highcharts-custom-events/node_modules/highcharts/highcharts").Axis'.
Types of property 'crosshair' are incompatible.
Type 'boolean | Highcharts.AxisCrosshairOptions' is not assignable to type 'boolean | import("C:/Users/sitoliquido/Documents/PrismNx.UI/node_modules/highcharts-custom-events/node_modules/highcharts/highcharts").AxisCrosshairOptions'.
Type 'AxisCrosshairOptions' is not assignable to type 'boolean | AxisCrosshairOptions'.
Type 'Highcharts.AxisCrosshairOptions' is not assignable to type 'import("C:/Users/sitoliquido/Documents/PrismNx.UI/node_modules/highcharts-custom-events/node_modules/highcharts/highcharts").AxisCrosshairOptions'.
The types of 'label.formatter' are incompatible between these types.
Type 'Highcharts.XAxisCrosshairLabelFormatterCallbackFunction' is not assignable to type 'import("C:/Users/sitoliquido/Documents/PrismNx.UI/node_modules/highcharts-custom-events/node_modules/highcharts/highcharts").XAxisCrosshairLabelFormatterCallbackFunction'.
The 'this' types of each signature are incompatible.
Type 'import("C:/Users/sitoliquido/Documents/PrismNx.UI/node_modules/highcharts-custom-events/node_modules/highcharts/highcharts").Axis' is not assignable to type 'Highcharts.Axis'.
The types of 'chart.hoverPoint.dataGroup.options' are incompatible between these types.
Type 'import("C:/Users/sitoliquido/Documents/PrismNx.UI/node_modules/highcharts-custom-events/node_modules/highcharts/highcharts").SeriesOptionsType' is not assignable to type 'Highcharts.SeriesOptionsType'.
Type 'SeriesAbandsOptions' is not assignable to type 'SeriesOptionsType'.
Type 'import("C:/Users/sitoliquido/Documents/PrismNx.UI/node_modules/highcharts-custom-events/node_modules/highcharts/highcharts").SeriesAbandsOptions' is not assignable to type 'Highcharts.SeriesAbandsOptions'.
The types of 'accessibility.point' are incompatible between these types.
Type 'PlotAbandsAccessibilityPointOptions | PlotAdAccessibilityPointOptions | PlotAoAccessibilityPointOptions | ... 107 more ... | PlotZigzagAccessibilityPointOptions' is not assignable to type 'PlotAbandsAccessibilityPointOptions | PlotAdAccessibilityPointOptions | PlotAoAccessibilityPointOptions | ... 106 more ... | PlotZigzagAccessibilityPointOptions'.
Type 'PlotAbandsAccessibilityPointOptions' is not assignable to type 'PlotAbandsAccessibilityPointOptions | PlotAdAccessibilityPointOptions | PlotAoAccessibilityPointOptions | ... 106 more ... | PlotZigzagAccessibilityPointOptions'.
Type 'PlotAbandsAccessibilityPointOptions' is not assignable to type 'PlotZigzagAccessibilityPointOptions'.
Types of property 'dateFormatter' are incompatible.
Type 'import("C:/Users/sitoliquido/Documents/PrismNx.UI/node_modules/highcharts-custom-events/node_modules/highcharts/highcharts").ScreenReaderFormatterCallbackFunction<import("C:/Users/sitoliquido/Documents/PrismNx.UI/node_modules/highcharts-custom-events/node_modules/highcharts/highcharts").Point>' is not assignable to type 'Highcharts.ScreenReaderFormatterCallbackFunction<Highcharts.Point>'.
Types of parameters 'context' and 'context' are incompatible.
Property 'setVisible' is missing in type 'Highcharts.Point' but required in type 'import("C:/Users/sitoliquido/Documents/PrismNx.UI/node_modules/highcharts-custom-events/node_modules/highcharts/highcharts").Point'.ts(2345)