score:1
The elements are inside svg tag, you would have to change your locater here.
//*[local-name() = 'svg']/*[local-name()='g'][6]/*/*
This represent months with their value. you can store everything in a list and can print them.
Something like this :
months = driver.find_elements(By.XPATH, "//*[local-name() = 'svg']/*[local-name()='g'][6]/*/*")
for date in months:
print(date.text)
Yes when you hover over to a particular month you can use the below xpath
//*[local-name() = 'svg']/*[local-name()='g' and @class='highcharts-tooltip']/*[local-name()='text']
month_value = driver.find_element(By.XPATH, "//*[local-name() = 'svg']/*[local-name()='g' and @class='highcharts-tooltip']/*[local-name()='text']")
print(month_value.text)
to print the respective value.
for hovering to a particular month you can use the below code :
tooltip = driver.find_element(By.XPATH, "//*[local-name() = 'svg']/*[local-name()='g'][8]/*[local-name()='text']")
ActionChains(driver).move_to_element(tooltip).perform()
Source: stackoverflow.com
Related Query
- How to scrape data from Highcharts charts using selenium and python?
- Highcharts Highstock How to Plot OHLC and Line Charts from One Set of Embedded CSV Data Using Series Map Tools?
- How to display historical data and live data from database using Highcharts
- Scraping data from Highcharts using selenium
- How to grab correct highchart number in selectors using Selenium Webdriver with Python with several charts on the page?
- Fetch data from firebase firestore and plot histogram using highcharts when cardview clicked - android
- How to hardcode chart data in my Model then have my Controller pull it from there to display it. Using Highcharts
- How can I automate high charts and graphs using selenium webdriver?
- Scrape data from a highchart using selenium
- How to use axios to fetch data from servlet and then crossfilter it and display via highcharts
- HTML table as data source for highstock charts using highcharts
- How to get data from multiple tables of MySQL DB and manuplate it using PHP to display graphs?
- Getting Refreshed Highcharts Data Using Selenium & Python
- How to return every nth row from dataset using postgresql to control a Highcharts data series
- How to replace x-axes with our own timestamp data from API in Highcharts using highstocks
- how to make chart real time with 2 line and get data from php with highcharts
- Align second scatter series to the side similar to how column and bar charts do using HighCharts
- How do I scrape data from a highcharts graph in python?
- How to query data from database using highcharts in Codeigniter?
- Highcharts, influxdb and nodejs, how to display data of influxdb in highcharts using influxdb-nodejs?
- How to make multiple Y-axis with incoming series of data from database using Highcharts
- How to set json data from url on highchart and polling the json data after 1 sec to dislay on highchart using Angular js
- How to draw a chart from one array of data and make labels on the chart from another array of data? Highcharts v.4.0.4
- How can I scrape Json data from Highcharts (stats.twitchapps.com)
- How do I set multiple unique charts in their own DIVs using an AngularJS directive and Highcharts
- How to create a column range chart in Highcharts using range and navigator functions?
- How do I dynamically change a data point in Highcharts using JavaScript
- Using Highcharts and displaying a message over or on the chart when there is no data
- Highcharts - How can I remove starting and ending padding from area chart
- Highcharts: How to load data from JSON to xAxis.categories and series.data?
More Query from same tag
- Execute a function after rendering of Graph completes
- HighCharts Date Formatting
- Difference between ChartModule & HighchartsChartModule in Angular-HighCharts?
- Highcharts background image size option
- Using hours and minutes as data in highcharts donut chart
- Highcharts: trying to update series
- Highcharts Grid Line Width (or Color) - Single Line
- For higher number of data in time series highchart calculates average value
- Which one is better to represent an API fetched data in react js and please explain how to do that?
- highcharts : issue in plotting 2 graphs in 1 chart
- highcharts use variable as chart title
- Highstocks - Step line does not appear on chart export
- HIGHCHARTS - Given a series with UNIX stamps and values pairs for the data, how do I show only the date for the first and last point on xAxis?
- bar pointPlacement works bad in get one data
- Remove spacing on a HighChart graph?
- High charts, providing data for xAxis instead of Series
- Animation for dynamically loaded new data with Highcharts
- HighCharts data defined in a HTML Table using PHP MySQL
- x axis label word wrap in high charts for radar chart
- Highcharts React update animations with datetime axis
- Pie Chart Custom Legend
- Highcharts : How to remove the gap between series and vertical axis?
- highchart Dynamically updated data
- Highcharts SVG accessibility
- HighCharts : How to add click event on colorAxis in heatmap
- Highstock showing dates where there's no Data
- How to apply the Renderer text() function multiple times to a Highcharts chart?
- How do I revert to the old highcharter interface?
- Change Highmaps map colour
- Total value contains part of current value in highcharts