CachedXValue

ChartDataPoint.CachedXValue property

Gets the cached X value of a chart data point. Read-only ICachedChartValue.

public ICachedChartValue CachedXValue { get; }

Examples

[C#]
using (Presentation pres = new Presentation("Chart.pptx"))
{
    var chart = (IChart)pres.Slides[0].Shapes[0];
    foreach (var series in chart.ChartData.Series)
    {
        // Print all cached X values of the chart series.
        foreach (var point in series.DataPoints)
            Console.WriteLine(point.CachedXValue.ToDouble());
    }
}

See Also