```
String veritcalXpath = "//*[local-name()='svg']//*[name()='g' and @class = 'highcharts-series-group']//*[name()='rect']";
String textXpath = "//*[local-name()='svg']//*[name()='g' and @class = 'highcharts-label highcharts-tooltip highcharts-color-undefined']//*[name()='text']";
List<WebElement> barList = driver.findElements(By.xpath(veritcalXpath));
System.out.println("Total bar list size is:- " + barList.size());
Actions act = new Actions(driver);
for (WebElement e : barList) {
act.moveToElement(e).perform();
// Thread.sleep(500);
String text = driver.findElement(By.xpath(textXpath)).getText();
System.out.println(text);
This code is for your understanding, I want to implement this in the cypress Automation. Please let me know how can implement this in the cypress for automating the Pie Chart.