2

When i select a point in the chart using

let activeElement:Array<any> = this.lineChart.getElementAtEvent(data);

i can get the values, after getting the values i use

 el.scrollIntoView({behavior: "smooth", block: "center"});

to scroll to the row in the grid which i want to highlight.

enter image description here

Now i am trying to select or highlight a point on the line chart when i select the specific row.

How can i do that using javascript?

Muhammad Omais
  • 319
  • 1
  • 4
  • 12
  • 1
    check [this answer](https://stackoverflow.com/a/34687291/5090771)... – WhiteHat Mar 01 '19 at 12:42
  • Thanks for the answer @WhiteHat. I tired but its not working. I tried many different changes but none of them work. i am getting the following error `ERROR TypeError: Cannot read property 'highlightPoints' of undefined` – Muhammad Omais Mar 04 '19 at 15:04

0 Answers0