CartesianChart.localToData() is deprecated: Please Use IChartElement2.localToData()
So how do I user the new method if their names are the same?
Should I cast CartesianChart to IChartElement2?
IChartElement2 is an interface which is implemented by "series, backgroundElements, or annotationElements".
So, you can use localToData() method with any of these components. Like series.LocalToData(point), canvas.localToData(point)
Regards,
Tanu