The Measure-x Annotation toolbar in High stocks is conspicuously absent from the graph, instead making an appearance in the navigator section below

Recently, I encountered a strange issue that has left me puzzled. When I trigger the measure-x event on my graph, the annotation and its toolbar are not displaying on the graph as expected. Instead, they appear on the navigator below. The annotation should ideally show the min, max, and average values on the graph. Interestingly, when I use the measure-xy event with the same code, everything works fine. I have provided my chart options below along with screenshots of the problem. Any assistance in debugging this issue would be highly appreciated.

    const chartoptions = {
  title: {
    text: '',
  },
  chart: {
    animation: false,
  },
  legend: {
    enabled: true,
  },
  exporting: {
    enabled: true,
    fallbackToExportServer: false,
  },
  boost: {
    useGPUTranslations: true,
  },
  xAxis: {
    type: 'datetime',
  },
  yAxis: [
    {
      id: '2df93b78-7622-4957-a7ec-8aa8482111a9',
      labels: { format: '{value}' },
      opposite: false,
      showEmpty: false,
      title: { text: 'kelvin' },
    },
    {
      id: 'df29ccae-94f3-4d0a-bf11-32ad7da1a2ed',
      labels: { format: '{value}' },
      opposite: true,
      showEmpty: false,
      title: { text: 'kelvin' },
    },
    {
      id: '1dda5a2f-7337-480a-a486-d778ba0f01bd', 
      labels: { format: '{value}' },
      opposite: false,
      showEmpty: false,
      title: { text: 'mbar' },
    },
    {
      id: '1dda5a2f-7337-480a-a486-d778ba0f01bd',
      labels: { format: '{value}' },
      opposite: false,
      showEmpty: false,
      title: { text: 'mbar' },
    },
  ],

  navigator: {
    enabled: true,
    series: {
      dataGrouping: {
        enabled: true,
        groupPixelWidth: 2,
      },
    },
  },
  plotOptions: {
    series: {
      dataGrouping: {
        enabled: false,
      },
      showInNavigator: true,
      animation: false,
      states: {
        inactive: {
          opacity: 1,
        },
      },
    },
  },
  rangeSelector: {
    buttons: [
      {
        type: 'minute',
        count: 1,
        text: '1m',
      },
      {
        type: 'minute',
        count: 30,
        text: '30m',
      },
      {
        type: 'hour',
        count: 1,
        text: '1h',
      },
      {
        type: 'day',
        count: 1,
        text: '1d',
      },
      {
        type: 'week',
        count: 1,
        text: '1w',
      },
      {
        type: 'month',
        count: 1,
        text: '1m',
      },
      {
        type: 'all',
        text: 'All',
      },
    ],
    selected: 6,
    inputEnabled: false,
  },
  stockTools: {
    gui: {
      buttons: ['measure', 'zoomChange', 'toggleAnnotations'],
      definitions: {
        measure: {
          items: ['measureX'],
        },
        zoomChange: {
          items: ['zoomX'],
        },
      },
    },
  },
  navigation: {
    bindings: {
      measureX: {
        end: function (e, annotation) {
          console.log('Annotation end')
        },
        annotationsOptions: {
          typeOptions: {
            label: {
              enabled: false,
            },
          },
        },
      },
    },
    annotationsOptions: {
      events: {
        afterUpdate: function (e) {
          console.log('Annotation update')
        },
        remove: function (e) {
          console.log('Annotation removed')
        },
      },
    },
  },
}

https://i.sstatic.net/aZ0uW.png

https://i.sstatic.net/v2lbH.png

https://i.sstatic.net/NvMka.png

Answer №1

It took some thorough investigation, but I finally managed to resolve the issue at hand. Simply by including the following option for highcharts in my code, the problem was fixed.

scrollbar: {
    liveRedraw: false,
  },

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Exploring the return type of the `within` function in TypeScript Library

I have helpers set up for my React tests using the testing library: const getSomething = (name: string, container: Screen | any = screen) { return container.getByRole('someRole', { name: name }) } The container can be either the default screen ...

Can we utilize the elements in Array<keyof T> as keys in T?

Hello, I am trying to develop a function that accepts two parameters: an array of objects "T[]" and an array of fields of type T. However, I am encountering an issue when I reach the line where I invoke el[col] Argument of type 'T[keyof T]' i ...

What is the purpose of specifying the props type when providing a generic type to a React functional component?

When utilizing the @typescript-eslint/typedef rule to enforce type definitions on parameters, I encountered an issue with generically typing a React.FC: export const Address: React.FunctionComponent<Props> = (props) => ( An error was thrown st ...

The Microsoft Bing Maps V8 TypeScript library is unable to load: "Microsoft is not recognized."

I'm looking to integrate BingMaps into my React project using TypeScript. After installing the npm bingmaps package, I have included the necessary d.ts file. To import the module, I use the following code: import 'bingmaps'; Within my Com ...

Is it feasible to return data when utilizing the ModalController in Ionic 5, specifically when executing a swipeToClose or backdropDismiss action?

With the latest update to Ionic 5's ModalController, a new feature allows users to swipe down on a modal to close it in addition to using the backdropDismiss parameter. Here is an example of how to enable this functionality: const modal = await this. ...

Typescript is facing an issue locating the declaration file

I'm encountering an issue with TypeScript not recognizing my declaration file, even though it exists. Can anyone provide insight into why this might be happening? Here is the structure of my project: scr - main.ts - dec.d.ts str-utils - index. ...

What is the correct way to integrate knex using inversify?

Is there a way for me to set up knex and utilize the Inversify dependency injector to inject it wherever it is required? ...

Warning: The TypeScript version in use may not support all features. The current language level is set to XX in Visual Studio 2019

After installing VS 2019, I noticed that Microsoft.TypeScript.MSBuild 4.2.3 was added. On my Windows 10 OS, I also installed it using NPM in the following way: However, upon opening VS 2019, I encountered the warning below: TypeScript 3.4 feature Curre ...

Exclude promises from a type in TypeScript

Here is my TypeScript snippet: async function get_string(){ return "hello" } var the_string = get_string() In the code, the type of the_string is Promise<string> I am interested in removing the Promise from the type of the_string and m ...

Discovering the import path of Node modules in ReactAlgorithm for determining the import path of

Software Development In my current project, I am utilizing Typescript along with React. To enhance the application, I integrated react-bootstrap-date-picker by executing yarn install react-bootstrap-date-picker. Unfortunately, there is no clear instruct ...

Tips for creating a recursive string literal type in Typescript

I need to create a type that represents a series of numbers separated by ':' within a string. For example: '39:4893:30423', '232', '32:39' This is what I attempted: type N = `${number}` | '' type NL = `${ ...

Error: Couldn't locate Next.js - TypeScript module

I encountered an error with the image, but I am unsure of the reason behind it. Additionally, the directory is included in the second image. https://i.sstatic.net/knUzH.png import Link from 'next/link'; import { useState } from 'react' ...

"Unsubscribing in Angular via a button click: A step-by

I'm having trouble canceling a subscription for "device orientation" in Angular using (click) in HTML. I've tried multiple solutions but none seem to work. Does anyone have any ideas on how to fix this? TS // Watching the change in device compa ...

"Exploring the capabilities of Rxjs ReplaySubject and its usage with the

Is it possible to utilize the pairwise() method with a ReplaySubject instead of a BehaviorSubject when working with the first emitted value? Typically, with a BehaviorSubject, I can set the initial value in the constructor allowing pairwise() to function ...

The Angular2 promise resolves before the web service call has finished executing

I have a service in Angular 2 that contains a function responsible for providing data for a dropdown list. This particular function returns a promise. Below is the code snippet from the service: getStuff(): Promise<Stuff> { return t ...

Show every item from a collection on individual lines within an Angular2 module

I am working with an Angular2 component that is responsible for displaying a list of speakers stored in some data. Currently, when I add the code below to my xyz.component.html, it shows the list as comma-separated strings. However, I would like each speak ...

Authenticating to Google APIs using Node.js within a lambda function: A step-by-step guide

I'm encountering an issue when trying to connect a Google sheet to an AWS Lambda function. While the code runs smoothly during local testing, upon deployment to the function, I receive an error message indicating that the credentials.json file cannot ...

Discovering an element in an Array using Angular 2 and TypeScript

In my setup, I have a Component and a Service: Component: export class WebUserProfileViewComponent { persons: Person []; personId: number; constructor( params: RouteParams, private personService: PersonService) { ...

Create a bar graph by processing JSON data

I am attempting to construct a basic highchart bar graph using JSON that provides data in the following format : [{ "name":"Apple", "price":"40", "date":"2022-02-04" }, { "name":"Ma ...

Encountering a lack of SSR functionality following the transition from Angular 16 to Angular 17

After upgrading my project from Angular 16 to Angular 17, I realized that Server-Side Rendering (SSR) support is not included. Is SSR support provided by Angular when migrating from 16 to 17? Upon creating a new Angular 17 project, I noticed that it inclu ...