Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
Sometimes, the user needs to know if a particular axis exists in the chart. For example, he wants to know if a secondary value axis exists in the chart or not. Some charts like Pie, PieExploded, PiePie, PieBar, Pie3D, Pie3DExploded, Doughnut, DoughnutExploded, etc. do not have axes.
Aspose.Cells provides Chart.HasAxis(AxisType axisType, bool isPrimary) method to determine if the chart has a particular axis or not.
The following sample code demonstrates the use of Chart.HasAxis(AxisType axisType, bool isPrimary) to determine if the sample chart has primary and secondary category and value axes.
The console output of the code is shown below, which displays True for primary category and value axes and False for secondary category and value axes.
Has Primary Category Axis: True
Has Secondary Category Axis: False
Has Primary Value Axis: True
Has Secondary Value Axis: FalseAnalyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.