Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
Sometimes, users need to know if a particular axis exists in the chart. For example, they may want to know whether a secondary value axis exists in the chart or not. Some charts, such as Pie, PieExploded, PiePie, PieBar, Pie3D, Pie3DExploded, Doughnut, DoughnutExploded, etc., do not have an axis.
Aspose.Cells for Python via .NET provides the Chart.has_axis(AxisType axis_type, bool is_primary) method to determine whether the chart has a particular axis or not.
The following sample code demonstrates the use of Chart.has_axis(AxisType axis_type, bool is_primary) to determine whether the sample chart has primary and secondary category and value axes.
The console output of the code is shown below, which displays True for the primary category and value axes and False for the 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.