Skip to content
Board Index
FAQ
Login
Register
Board index
Highcharts - The JavaScript Charting Framework
Highcharts Stock
Unanswered topics
Active topics
Board Index
FAQ
Search
Login
Register
Get yAxis value of a series by xAxis value
Post Reply
Print view
2 posts • Page
1
of
1
abhimanusharma
Posts:
1
Joined:
Wed Dec 29, 2021 11:06 am
Get yAxis value of a series by xAxis value
Quote
Wed Dec 29, 2021 11:11 am
In a series xAxis represents time and yAxis represent the value(any numeric value).
How can I get value at yAxis at a certain timestamp.
const axis = chart.xAxis[0];
const series = chart.series[0];
yData = series.getYaxisData(xAxisValue);
michal.f
Posts:
1114
Joined:
Thu Aug 12, 2021 12:04 pm
Re: Get yAxis value of a series by xAxis value
Quote
Wed Dec 29, 2021 5:46 pm
Hello,
Welcome to our forum and thanks for contacting us with your question!
If you understand correctly that you want to extract the value of a given point by date, you can achieve it in the same way as in the attached demo.
Demo:
https://jsfiddle.net/BlackLabel/dxmbn9c4/
Let me know if that was what you were looking for!
Best regards!
Michał Filipiec
Highcharts Developer
https://blacklabel.pl/highcharts/
Display posts from previous:
All posts
1 day
7 days
2 weeks
1 month
3 months
6 months
1 year
Sort by
Author
Post time
Subject
Ascending
Descending
Post Reply
Print view
2 posts • Page
1
of
1
Return to “Highcharts Stock”
Jump to
Highcharts - The JavaScript Charting Framework
Highcharts Usage
Highcharts Stock
Highcharts Maps
Highcharts Gantt
Highcharts Dashboards
Highcharts Cloud
Wrappers - The Official Highcharts Wrappers
Highcharts .NET
Highslide JS - The JavaScript Image and Media Viewer
Highslide JS Usage
Highslide Editor
Highslide FAQ
News