 
         if pieData != nil
         {
+            // If we redraw the data, remove and repopulate accessible elements to update label values and frames
+            accessiblePieChartElements.removeAll()
+
             for set in pieData!.dataSets as! [IPieChartDataSet]
             {
                 if set.isVisible && set.entryCount > 0

                    context.addPath(path)
                    context.fillPath(using: .evenOdd)

                    if let container = self.chart {

                        let axElement = self.createAccessibleElement(withIndex: j,
                                                                     container: container,
                                                                     dataSet: dataSet)
                        { (element) in
                            element.accessibilityFrame = container.convert(path.boundingBoxOfPath,
                                                                           to: UIScreen.main.coordinateSpace)
                        }

                        self.accessiblePieChartElements.append(axElement)
                    }
                }
            }


            context.addPath(path)
            context.fillPath(using: .evenOdd)

            let axElement = createAccessibleElement(withIndex: index,
                                                    container: chart,
                                                    dataSet: set)
            { (element) in
                element.accessibilityFrame = chart.convert(path.boundingBoxOfPath,
                                                               to: UIScreen.main.coordinateSpace)
                element.accessibilityTraits = UIAccessibilityTraitSelected
            }

            highlightedAccessibleElements.append(axElement)
        }

        // Prepend selected slices before the already rendered unselected ones.
        // NOTE: - This relies on drawDataSet() being called before drawHighlighted in PieChartView.
        accessiblePieChartElements.insert(contentsOf: highlightedAccessibleElements, at: 1)

        context.restoreGState()
    }
